FirstValueIndex and LastValueIndex
Posted: Wed May 26, 2004 12:28 pm
We have created a TCustomSeries subclass which has two X-values and two Y-values, to draw "dumbbell" shapes.
Everything paints fine. However how do we integrate this second x-axis TChartValueList to participate in FirstValueIndex and LastValueIndex methods? We don't have source code, are these methods virtual?
Without these methods, we must handle this series class differently, and basically search the entire series against the X-axis min/max to find "visible" value indices.
Also, what other "plumbing" must be implemented to correctly integrate this series into the TeeCharts "machinery"? We currently have the following (in addition to drawing methods):
function MaxXValue: double; override;
function MaxYValue: double; override;
function MinYValue: double; override;
Everything paints fine. However how do we integrate this second x-axis TChartValueList to participate in FirstValueIndex and LastValueIndex methods? We don't have source code, are these methods virtual?
Without these methods, we must handle this series class differently, and basically search the entire series against the X-axis min/max to find "visible" value indices.
Also, what other "plumbing" must be implemented to correctly integrate this series into the TeeCharts "machinery"? We currently have the following (in addition to drawing methods):
function MaxXValue: double; override;
function MaxYValue: double; override;
function MinYValue: double; override;