Encounter bar and legend mismatch issue after upgrade
Posted: Tue Sep 22, 2009 2:49 am
Hello:
Here is another issue I encountered after I upgraded to new version teeChart: 3.5.3498.27367
In new version: 3.5.3498.27367, the bar and legend have mismatch issue in bar chart I draw.
You could see that in the below image. The red is bar1 in chart, but it is shown as bar3 in chart legend. The blue is bar3 in chart, but it is shown as bar1 in chart legend. But in old version: 3.5.3065.19161, the bar and legend match correctly in bar chart I draw. The following is the source code we use to create the bar chart, please help to fix the issue as soon as possible. Thank you so much.
Here is another issue I encountered after I upgraded to new version teeChart: 3.5.3498.27367
In new version: 3.5.3498.27367, the bar and legend have mismatch issue in bar chart I draw.
You could see that in the below image. The red is bar1 in chart, but it is shown as bar3 in chart legend. The blue is bar3 in chart, but it is shown as bar1 in chart legend. But in old version: 3.5.3065.19161, the bar and legend match correctly in bar chart I draw. The following is the source code we use to create the bar chart, please help to fix the issue as soon as possible. Thank you so much.
Code: Select all
tchart1 = New Steema.TeeChart.TChart
tchart1.Parent = Me
tchart1.Dock = DockStyle.Fill
tchart1.Aspect.View3D = False
Dim color1 As System.Drawing.Color = Drawing.Color.FromArgb(255, 0, 0)
Dim color2 As System.Drawing.Color = Drawing.Color.FromArgb(0, 255, 0)
Dim color3 As System.Drawing.Color = Drawing.Color.FromArgb(0, 0, 255)
Dim bar1 As New Steema.TeeChart.Styles.Bar(tchart1.Chart)
Dim bar2 As New Steema.TeeChart.Styles.Bar(tchart1.Chart)
Dim bar3 As New Steema.TeeChart.Styles.Bar(tchart1.Chart)
bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder
bar2.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder
bar3.BarStyle = Steema.TeeChart.Styles.BarStyles.Cylinder
bar1.Brush.Color = color1
bar1.Brush.Gradient.Visible = True
bar1.Color = color1
bar1.ColorEach = False
bar2.Brush.Color = color2
bar2.Brush.Gradient.Visible = True
bar2.Color = color2
bar2.ColorEach = False
bar3.Brush.Color = color3
bar3.Brush.Gradient.Visible = True
bar3.Color = color3
bar3.ColorEach = False
bar1.Add(10, 1, "bar1")
bar2.Add(12, 1, "bar2")
bar3.Add(14, 2, "bar3")
tchart1.Series.Add(bar1)
tchart1.Series.Add(bar2)
tchart1.Series.Add(bar3)