Simple Question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Simple Question

Post by Dave » Tue Nov 04, 2008 3:02 pm

Hello all,

Hopefully a simple question with a simple answer!

I am using a chartListBox and I am wondering how to change the colour indicator beside each series in the listbox from a line into a box?

In the tchart demos they appear as boxes but I can't find the option to change it in my code.

Thanks in advance,
Dave

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 04, 2008 3:36 pm

Hi Dave,

This depends on the series style you are using. Most likely you have a line for FastLine series. In that case you should change your series to Line series. You can use ChangeType method as shown here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Post by Dave » Tue Nov 04, 2008 3:47 pm

That doesnt seem to be the case.

I've just tried that and its the same. However in doing so I've found that the boxes only appear when the chart is 3D.

(to demonstrate this look in the tchart demo application under

Welcome !\Chart styles\Standard\Line(Strip)

You can see the lines change to and from boxes on the legend when you switch between 3D and 2D.

It would be nice to have this as an option to choose for 2d plots also, as I find it difficult to tell what colour each line is from the thin line on the chartListBox, legend etc.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 04, 2008 3:54 pm

Hi Dave,

Ok, now I see what do you mean. I'll add your request to the wish-list to be considered for inclusion in next releases. In the meantime, you can set legend's symbol as shown in the All Features\Welcome !\Miscellaneous\Legend\OnDrawSymbol Event example at the features demo. There's no solution I can think of for ChartListBox though.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Post by Dave » Tue Nov 04, 2008 3:58 pm

Thats great thanks!

Post Reply