Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
The code below is for chart settings | The code below is for chart settings | ||
*/ | */ | ||
var chart_title = "</html>{{{ | var chart_title = "</html>{{{4}}}<html>"; | ||
var series_name = "</html>{{{ | var series_name = "</html>{{{5}}}<html>"; | ||
var chart_size = "</html>{{{ | var chart_size = "</html>{{{6}}}<html>"; | ||
if(chart_size.length <1){ | if(chart_size.length <1){ | ||
chart_size=300; | chart_size=300; | ||
Line 49: | Line 49: | ||
var tmp_data = []; | var tmp_data = []; | ||
var content = "</html>{{{1}}}<html>"; | var content = "</html>{{{1}}}<html>"; | ||
var delimiter = "</html>{{{ | var categories_raw = "</html>{{{2}}}<html>"; | ||
var delimiter = "</html>{{{3}}}<html>"; | |||
var content_array = content.split(delimiter); | var content_array = content.split(delimiter); | ||
var categories_array = categories_raw.split(delimiter); | |||
for(var i=0, l=categories_array.length; i<l; i++){ | |||
var tmp =categories_array[i]; | |||
categories.push(tmp); | |||
} | |||
for(var i=0, l=content_array.length; i<l; i++){ | for(var i=0, l=content_array.length; i<l; i++){ |
Revision as of 15:08, 12 June 2013