ios - Pass ViewController's data to HTML file in Highcharts -


i loaded highcharts on ipad static data. want pass dynamic data in viewcontroller html file prepared loading highcharts's script.

how can pass dynamic data? please guide me same.

ps: checked stackoverflow tutorials pass dynamic data none of them talking passing data viewcontroller html file.

you can data ajax, in example:

http://jsfiddle.net/vw79l/

$.getjson('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(data) {     // create chart     $('#container').highcharts({           rangeselector : {             selected : 1         },          title : {             text : 'aapl stock price'         },          series : [{             name : 'aapl',             data : data,             tooltip: {                 valuedecimals: 2             }         }]     }); }); 

Comments