Page 1 of 1

Simple Question

Posted: Tue Nov 04, 2008 3:02 pm
by 13050364
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

Posted: Tue Nov 04, 2008 3:36 pm
by narcis
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.

Posted: Tue Nov 04, 2008 3:47 pm
by 13050364
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.

Posted: Tue Nov 04, 2008 3:54 pm
by narcis
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.

Posted: Tue Nov 04, 2008 3:58 pm
by 13050364
Thats great thanks!