1 Series, multiple charts
Posted: Tue Mar 08, 2005 9:20 pm
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
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