Bar Series Draws past Custom Vertical Axis Max

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kev
Newbie
Newbie
Posts: 42
Joined: Tue Apr 06, 2004 4:00 am
Location: Texas

Bar Series Draws past Custom Vertical Axis Max

Post by kev » Tue Mar 04, 2008 10:11 pm

I created a custom vertical axis for the purposes of adding a BarSeries to an existing chart that has several PointSeries. I scaled the axes and set the positions and offsets as needed. The New BarSeries is "under" the PointSeries part of the chart which has its own LeftAxis. I am using the bar series as a histogram. I update the YValues in the BarSeries as needed by resetting the values. This all works, but as the Yvalue for a given Xposition goes above the preset Vertical CustomAxis maximum, it just keeps on drawing up past the max line and into the other part of the chart. Isn't there a way to "Clip" the bar so that it will not draw beyond the axis maximum?

thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 05, 2008 10:21 am

Hi kev,

I'm not sure if that's what you are looking for but you may be interested in looking at the All Features\Welcome!\Axes\Opaque zones example in the new features demo, available at TeeChart's program group.

If this doesn't help don't hesitate to let us know.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

kev
Newbie
Newbie
Posts: 42
Joined: Tue Apr 06, 2004 4:00 am
Location: Texas

Post by kev » Thu Mar 06, 2008 9:33 pm

That might work, however I solved it by limiting the data based on the Custom left axis current max.

float max = HistoForm->HistoChart->CustomAxes->Items[0]->Maximum;

if(HistoForm->iFlawCountArray[iMotionPulse] > max)
HistoForm->iFlawCountArray[iMotionPulse] = max;


thanks

Post Reply