Page 1 of 1

ChartGrid Column problems

Posted: Mon Feb 26, 2018 4:32 pm
by 16582679
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

Re: ChartGrid Column problems

Posted: Fri Mar 02, 2018 9:41 am
by yeray
Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2005