¡@

Home 

2014/10/16 ¤W¤È 12:06:03

jquery Programming Glossary: options.series.push

PHP JSON Highcharts load database result

http://stackoverflow.com/questions/7810098/php-json-highcharts-load-database-result

'ajax calc.ajax.php' function data var series .each data function key value series.name key series.data value options.series.push name var chart new Highcharts.Chart options highchart loads ok and fills the series with Series 1 Series 2 .... but no.. function data var series must be object not array .each data function key value series.name key series.data value options.series.push name it should be series not name var chart new Highcharts.Chart options So it would be as follows .getJSON 'ajax calc.ajax.php'.. function data .each data function key value var series moved and changed to object series.name key series.data value options.series.push series pushing series object var chart new Highcharts.Chart options Also considering the JSON you are receiving nome TRANSFORMADOR..

Highcharts data series issue with ajax/json and PHP

http://stackoverflow.com/questions/8058136/highcharts-data-series-issue-with-ajax-json-and-php

domID ' domID function data .each data function key value var series series.name.push value series.data.push value options.series.push data alert data var linechart new Highcharts.Chart options Page2.php has the following sending back the json sqlSelect.. val else .each val function key val var d val.split var x Date.UTC d 0 d 1 d 2 series.data.push x d 3 options.series.push series After the above code you need to instantiate the chart var chart new Highcharts.Chart options And that should be..