Add in a method to get the serialized JSON of the chart without HTML or JS
Build in a method to get the serialized JSON of the chart itself with no HTML or JavaScript around. It could be called "ToJson" and place it on the Highcharts class, but that just as a proposition.
-
ToJson should be included since version 6.0.6500.22268 of .NET Highcharts, as well as GetJsonOptions in HighsoftNamespace class. Also see `GetHighcharts` and `GetHighchartsJS` that could be used with HTML helper like `@Html.Highsoft().GetJsonOptions(new Highcharts() { ... })`
-
Do you mean the current configuration? We've got functionality for that in the export module, but it is not cleanly available as an API call. It is part of the getSVG function, but could probably easily be separated out as a function. It is the options that are fed to create the chartCopy.