Hi there,
I have a LineChart, that by default uses a little line segment as a legend's symbol.
Well, under most cases, that symbol is quite hard to read.
My question is, how can I change that symbol to a square (like in the Bar charts) ?? or any other symbol?
I mean in code or using the designer.
Thanks in advance!
No ideas?
Suggestions are welcome!
Hello,
I cannot seem to remember if we can directly change that information in the legend and nothing is jumping out at me at the moment. What I do know is we can actually create our own legend layer and we can then have full control over the legend. Another option would be to modify the primitives that are being used in the existing legend. In your case you would want to replace the default primitives created and instead use Box primitives. The WinChart Samples Explorer shows some of the customizations possible in the Legends section of the Chart Samples Explorer. The Custom Chart Icons should be the example to follow as a guide. The code for that sample is in the CustomChartIcons and MyLayer files.
Matthew,
Thanks for the answer, now it's clear!