Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
} | } | ||
var chart; | |||
// Build the chart | // Build the chart | ||
var options={ | |||
chart: { | |||
renderTo: 'container', | renderTo: 'container', | ||
type: 'line' | type: 'line' | ||
Line 59: | Line 54: | ||
}, | }, | ||
xAxis: { | xAxis: { | ||
categories: | categories: [] | ||
}, | }, | ||
yAxis: { | yAxis: { | ||
Line 82: | Line 77: | ||
borderWidth: 0 | borderWidth: 0 | ||
}, | }, | ||
series: series | series: [] | ||
}; | |||
var series = { | |||
data: [] | |||
}; | |||
series.name ="scores"; | |||
for(var i=0, l=content_array.length; i<l; i++){ | |||
var tmp =content_array[i]; | |||
series.data.push(tmp); | |||
} | |||
options.series.push(series); | |||
var chart = new Highcharts.Chart(options); | |||
}); | }); |
Revision as of 15:27, 12 June 2013