Colors of high level series are red!
Posted: Mon May 31, 2004 8:37 am
Hello seniors,
Have you drawn many series in a TChart? I added 25 bars (from series 0 to series 24) in a chart and it seems that there is a small problem of the colors. All colors of series 18 to series 24 are red! 8O Had you met this problem? Should I assign the color of every series by myself? Do you have any better idea for discriminating them? Thanks for your suggestion.
Albert
If you want to reproduce this problem, you might follow the steps below.
1 Preparation:
1.1 Open the "Microsoft Visual Studio .NET 2003"
1.2 New a Visual C# Project by the template "Windows Application".
1.3 Drag a "TChart" to the "design page"
1.4 Double click the “tChart1” for adding the following code.
2 Reproduce the situation:
2.1 Press F5 to compile and run this program.
2.2 The colors of series 18 to series 24 are red.
Have you drawn many series in a TChart? I added 25 bars (from series 0 to series 24) in a chart and it seems that there is a small problem of the colors. All colors of series 18 to series 24 are red! 8O Had you met this problem? Should I assign the color of every series by myself? Do you have any better idea for discriminating them? Thanks for your suggestion.
Albert
If you want to reproduce this problem, you might follow the steps below.
1 Preparation:
1.1 Open the "Microsoft Visual Studio .NET 2003"
1.2 New a Visual C# Project by the template "Windows Application".
1.3 Drag a "TChart" to the "design page"
1.4 Double click the “tChart1” for adding the following code.
Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
System.Int32 SeriesOfChart = 25;
System.Int32 PointsOfSeries = 3;
Steema.TeeChart.Styles.Series sTemp;
// add series
for (System.Int32 i =0; i<SeriesOfChart; i++)
{
sTemp = this.tChart1.Series.Add(new Steema.TeeChart.Styles.Bar());
// add data
for (System.Int32 j = 0; j<PointsOfSeries; j++)
{
sTemp.Add(new System.Int32[] {i%6 + j});
}
}
}
2.1 Press F5 to compile and run this program.
2.2 The colors of series 18 to series 24 are red.