ChartGrid Column problems
Posted: Mon Feb 26, 2018 4:32 pm
I have a blank TChart together with a TChartGrid.
I assigned the ChartGrid to the Chart:
HeadwayChartGrid.Chart := HWayChart;
In my program, I add a series to the chart and then add data to the series. In the call to AddXY, the StatusTxt values describes important information about the items in the series.
HWayBarSeries[HWayBarSeriesCount].AddXY(DateTime, HeadwayTime, StatusTxt, ActivityColour);
The ChartGrid correctly creates and shows 3 columns for StatusTxt, Date, and Data value for that series.
Now, using the same procedure, I add another Series with different StatusTxt describing the new series items.
The ChartGrid now only adds 2 columns for Date, and Data value for that series. It does not add a column for the different StatusTxt that is relevant to the new Series.
This of course makes the ChartGrid appear to only contain one type of data.
How do a get the ChartGrid to add a column for the StatusTxt on subsequent Series?
Thanks
I assigned the ChartGrid to the Chart:
HeadwayChartGrid.Chart := HWayChart;
In my program, I add a series to the chart and then add data to the series. In the call to AddXY, the StatusTxt values describes important information about the items in the series.
HWayBarSeries[HWayBarSeriesCount].AddXY(DateTime, HeadwayTime, StatusTxt, ActivityColour);
The ChartGrid correctly creates and shows 3 columns for StatusTxt, Date, and Data value for that series.
Now, using the same procedure, I add another Series with different StatusTxt describing the new series items.
The ChartGrid now only adds 2 columns for Date, and Data value for that series. It does not add a column for the different StatusTxt that is relevant to the new Series.
This of course makes the ChartGrid appear to only contain one type of data.
How do a get the ChartGrid to add a column for the StatusTxt on subsequent Series?
Thanks