Search found 11 matches

by Hi Octane
Wed Jan 10, 2007 2:48 pm
Forum: VCL
Topic: Easy way to reverse Legend Items or reverse pie drawing
Replies: 3
Views: 9643

Perfect

I didn't even know that was an option. Thanks so much. One more question. I have the following code for printing the graph: Graph1 := TChart1(G1); Meta := Graph1.TeeCreateMetafile(True, Rect(0, 0, Graph1.Width, Graph1.Height)); try Canvas.StretchDraw(CRect, Meta); finally end; finally Meta.Free; end...
by Hi Octane
Tue Jan 09, 2007 9:11 pm
Forum: VCL
Topic: Easy way to reverse Legend Items or reverse pie drawing
Replies: 3
Views: 9643

Easy way to reverse Legend Items or reverse pie drawing

I have a minor issue that seems to require a lot of work to change. I noted that pie graphs start with the first pie piece created at 180 degrees and populates counter clockwise. When I use a half pie as a 'gauge' the left most pie piece corresponds to the bottom legend item, but is the first item f...
by Hi Octane
Tue Oct 24, 2006 3:52 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

Pep, I did that, but they didn't line up with the TDonut when it was set to 3D look. I did find a solution, which involved overriding the DrawAllValues function, copying all the code from it, modifying the code to use the TDonut Rect by getting it with the CalcRect3D function and not using inherited...
by Hi Octane
Fri Oct 20, 2006 2:58 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

I didn't plan on changing any source code in the control, just overriding methods and changing postions of the ticks in order to line up with 3d positions of another graph object. I just need the ticks of the gauge to line up with the donut control's 3d outline.
by Hi Octane
Fri Oct 20, 2006 1:35 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

Please respond soon.

I override the procedure 'DrawAllValues', but what properties do I change in order for the gauge's position to move?
Thanks,
Rick
by Hi Octane
Wed Oct 18, 2006 2:31 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

I override the procedure 'DrawAllValues', but what properties do I change in order for the gauge's position to move?
Thanks,
Rick
by Hi Octane
Mon Oct 16, 2006 7:24 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

overriding DrawAllValues

I override the procedure 'DrawAllValues', but what properties do I change in order for the gauge's position to move?

Thanks,
Rick
by Hi Octane
Mon Oct 16, 2006 2:23 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

Gauge Positioning

Because the gauge doesn't support 3d, I'm trying to position the gauge up and down to line up with the 3d donut. Could you tell me what method or event I could call in the TGauge that could help me override its default positioning?
Thanks
by Hi Octane
Thu Oct 12, 2006 2:56 pm
Forum: VCL
Topic: Printing Problem
Replies: 5
Views: 12889

Printing

I ran into this same issue. I resolved it by creating a 'Resize' function. I basically Resize everything to allow the user to see the graph zoomed in or out, and when printing I pass Zoom = 100; Here's some of the code lines: Graph1.Font.Height := -Round(Int(8 * Zoom / 100)); Graph1.LeftAxis.LabelsF...
by Hi Octane
Mon Oct 09, 2006 2:45 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

Example of Graph Object

Thanks Narcis for the reply. I've attached a picture of what I'm trying to create with a TDonutSeries combined with a TGaugeSeries. There are other controls out there 'similar' to this, but I think if you could enhance your gauge series by adding tdonut or tpie into it, this could be a useful and po...
by Hi Octane
Fri Oct 06, 2006 3:18 pm
Forum: VCL
Topic: Gauge/Pie combination in 3d?
Replies: 12
Views: 18208

Gauge/Pie combination in 3d?

Hi, I'm trying to make a chart that has a pie chart behind a gauge. It works fine except I can't find a way to make it appear 3d. The boss thinks the 2d look is too 'boring'. One problem is the 3d on pies appears at the bottom and i'm using a semi-pie and a gauge set at 180 degrees. When I set the 3...