Page 1 of 1

Bar Series Draws past Custom Vertical Axis Max

Posted: Tue Mar 04, 2008 10:11 pm
by 9232023
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

Posted: Wed Mar 05, 2008 10:21 am
by narcis
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.

Posted: Thu Mar 06, 2008 9:33 pm
by 9232023
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