Welcome Guest, Not a member yet? Register   Sign In
Displaying chart

I assumed that your data model returns correct json then the way I look at this portion
var jqxhr = $.getJSON('http://localhost/dashboard/index.php/showchart/data',function(csv) {
 console.log( "success" );
   options.xAxis.categories = json[0]['data'];
       options.series[0] = json[1]['result']
       options.series[1] = json[2]['result'];

Try to add this line below console.log('success'), i.e
then this shows what return back as csv.  This should help you to further check data and correctly serialize them out.

Also it seems like you just equate your option to 'json' out of nowhere, i.e 
options.xAxis.categories = json[0]['data']; //where do you get this json from? it should be what comes with 'csv'
       options.series[0] = json[1]['result']
       options.series[1] = json[2]['result'];


Messages In This Thread
Displaying chart - by nupura.pantina - 09-04-2017, 10:35 PM
RE: Displaying chart - by ciadvantage - 09-08-2017, 07:41 AM

Theme © iAndrew 2016 - Forum software by © MyBB