Encounter bar and legend mismatch issue after upgrade

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

Encounter bar and legend mismatch issue after upgrade

Post by Chris.CHWU » 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.
New.JPG
New.JPG (91.95 KiB) Viewed 7242 times
But in old version: 3.5.3065.19161, the bar and legend match correctly in bar chart I draw.
Old.JPG
Old.JPG (105.68 KiB) Viewed 7243 times
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)

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Encounter bar and legend mismatch issue after upgrade

Post by Yeray » Tue Sep 22, 2009 11:15 am

Hi Chris,

I've found that the fix for the bug TF02013556 broke this. I've added this to be revised for further releases (TF02014433).

In the meanwhile you could try setting the BarStyle to Rectangle and trying to achieve a similar effect customizing the gradients Start, Middle and End colors.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Encounter bar and legend mismatch issue after upgrade

Post by Yeray » Thu Sep 24, 2009 8:35 am

Hi Chris,

As an update to this, I'd like you to know that this has been fixed, so it will be available with the next TeeChart NET v2009 maintenance release.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply