Legend with multiple series does not show checkboxes

TeeChart for ActiveX, COM and ASP
Post Reply
landa
Newbie
Newbie
Posts: 30
Joined: Thu Oct 16, 2008 12:00 am
Location: Chico, CA

Legend with multiple series does not show checkboxes

Post by landa » Fri Jan 30, 2009 5:22 pm

Hi there,

I just upgraded from version 5 to version 8. I noticed two problems so far. The first one is that a chart with multiple series does not have the checkboxes showing up... In fact it only plots one of the series on the graph. Multiple fast line series are missing... And only the titles show up in the legend... no checkboxes. The other problem is that the background color of the chart has changed from blue to yellow.

Thanks,
Landa

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

Post by Yeray » Mon Feb 02, 2009 8:27 am

Hi Landa,

I haven't been able to reproduce it here. I've tried this code and does exactly the same in v5 than in v8:

Code: Select all

Private Sub Form_Load()
  TChart1.AddSeries scLine
  TChart1.AddSeries scLine
  TChart1.AddSeries scLine
  
  TChart1.Series(0).FillSampleValues 25
  TChart1.Series(1).FillSampleValues 25
  TChart1.Series(2).FillSampleValues 25
  
  TChart1.Legend.CheckBoxes = True
  
  TChart1.Panel.Color = vbBlue
  
'  TChart1.Walls.Back.Transparent = False
'  TChart1.Walls.BackColor = vbBlue
End Sub

Please, could you send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
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

landa
Newbie
Newbie
Posts: 30
Joined: Thu Oct 16, 2008 12:00 am
Location: Chico, CA

Post by landa » Thu Feb 05, 2009 7:27 pm

Hi Yeray,

I just uploaded the file. Please let me know if you can reproduce the same results.

Thanks,
Landa

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

Post by Yeray » Mon Feb 09, 2009 11:42 am

Hi landa,

First of all I'd like to apologize because we're not familiarized with tcl language, so it would be really helpful if you could reproduce the problems in a simple vb example.

On the other hand, we've seen that the portion of code where the panel gradient is set to blue seems to be commented and the default gradient color is yellow:

Code: Select all

    puts "$chartname.Panel.Gradient.Visible = true;"
    #puts "$chartname.Panel.Gradient.Direction = 4;"
    #puts "$chartname.Panel.Gradient.StartColor = RGB(0,128,192);"
    #puts "$chartname.Panel.Gradient.EndColor = RGB(0,64,128);"
And we haven't found any code where the legend.checkboxes is set.
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

landa
Newbie
Newbie
Posts: 30
Joined: Thu Oct 16, 2008 12:00 am
Location: Chico, CA

Post by landa » Tue Feb 24, 2009 10:35 pm

I added the lines that you suggested. And it seems to be working now.
Thanks for your help.
Landa

Post Reply