Page 1 of 1

1 Series, multiple charts

Posted: Tue Mar 08, 2005 9:20 pm
by 9336985
Hi,

Question 1
------------

I have a form with two charts, and one series:

Chart1: TChart;
Chart2: TChart;
Series1: TBarSeries;

At design time I have series1 one associated with chart1. In a button event handler I write:

self.Chart2.AddSeries(self.Series1);

I now see the series on chart2, but not chart1. Is it possible to show the same series on two different charts? (believe me there's a reason...above is simplified view of what I'm rally trying to do).

Question 2
------------

In a color grid I add colors to the palette with:

colorGrid.AddPalette( -1, RGB(255, 255, 255));

colorGrid.AddPalette( 0, RGB(0, 0, 64));
colorGrid.AddPalette( 25, RGB(0, 0, 96));
colorGrid.AddPalette( 50, RGB(0, 0, 128));
// yada yada...

The -1 / white is to get around the bug with ColorGrid / AddNull - see ColorGird - Grid thread for more details on this. Is it possibel to have the -1 / white active but not VISIBLE in the legend?

Regards,

Rick

Posted: Mon Mar 14, 2005 11:48 pm
by 9336985
I'll answer this one myself ...

I have two charts on different tab sheets. I want to show the same series on each chart. Changing the series parentChart property seems to work well. Wouldn't work, of course, if they're on the same tabsheet.