Jul 27, 2016, 6:56 AM
[CLOSED] Best way to serialise a Chart LegendConfig
I'm attempting to build in SmartLegend into a Chart control. All is working as expected, however I'm wondering the best way to serialise the LegendConfig.
I tried the following:
I tried the following:
new ChartLegend.Config().Apply<ChartLegend.Config>(this.LegendConfig).Serialize();
however the config ended up with Capital property names: {"BoxFill":"","BoxStroke":"","BoxStrokeWidth":0,"BoxZIndex":100,"ItemSpacing":10,"LabelColor":"#000","LabelFont":"Segoe UI Light_ 8px","Padding":5,"Position":"Bottom","Update":true,"Visible":true,"X":0,"Y":0})
It seems like something that should be really simple but I'm just missing it!