mattiasnordqvist / CSharp-GeckoBoard-Push

Push data to your custom Geckoboard widgets from C#
MIT License
0 stars 1 forks source link

Highcharts api runs on javascript, not json #5

Open dluco- opened 8 years ago

dluco- commented 8 years ago

Highcharts require javascript, not json, so the api settings used by web anchor in the background should be able to serialize javascript functions. or something.

mattiasnordqvist commented 8 years ago

http://stackoverflow.com/questions/4901859/send-javascript-function-over-json-using-json-net-lib

mattiasnordqvist commented 8 years ago

@dluco- Could you explain how you serialize your highchart javascript content? A code snippet maybe?

dluco- commented 8 years ago

Edit: var data = new HighChartToGecko { highchart = JsonConvert.SerializeObject(inboundOutBoundDashboard, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }) };