SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

Answered
0
0

I am adding a LegendModifier to display legends for my chart as below:

_sciChartSurface.chartModifiers.add(new SciChart.LegendModifier({ showCheckboxes: true }));

My legend currently looks like the below, with very poor legend visibility:

![enter image description here][1]

I want to know how to set this legend to be opaque so that the labels may be seen clearly. What would be event better would be to just have a constant class for my legend collection (perhaps .sciChartLegendsContainer or whatever) so that I can apply my own css styling myself, without having to hack around with javascript.
Thanks

Version
1.3.1500
Images
  • You must to post comments
Best Answer
1
0

Hello Malcolm,

As of now you can set a custom lagend background as such:

sciChartSurface.themeProvider.legendBackgroundBrush = "red";  

Also, we have a task in our backlog to allow easier styling using CSS:

https://abtsoftware.myjetbrains.com/youtrack/issue/SCJS-497

Best Regards,
Ivan

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.