Highcharts 㯠JavaScript ã§ã°ã©ããæç»ããããã®ãã¼ã«ã
サイトのサンプル è¦ãã¨ãjqplot ããæ©è½ãè±å¯ããã
ããredmine ã§ä½¿ããã¨ãæ³å®ãã¦ã¾ãã
ãã¦ã³ãã¼ã
http://highcharts.com/download ããã
ã¤ã³ã¹ãã¼ã«
public/javascripts ã« js é ä¸ã®ãã¡ã¤ã«ãã³ãã¼ã
使ãæ¹
http://www.highcharts.com/documentation/how-to-use ãåèã«ã
åºæ¬ã¯ jqplot ã¨å¤ãããªãã div ã§é åã確ä¿ãã¦ãã°ã©ããæ¸ãã
http://highcharts.com/demo/ ã®ãã¢ããèªåã®ãããããã¨ãæ¢ãã¦ãã½ã¼ã¹è¦ãã°ã¾ãã¾ã大ä¸å¤«ã
æ¥ä»ã®æå®
"Date.UTC(2010,9,31)" ã®ããã«ãJavaScript ã®ã³ã¼ãã¨ãã¦æå®ããã
æååã§ã®æå®ã¯ç¡çãªã®ããªï¼
ãã¼ã¿ãå¾ããæ³¨å ¥
series ã® setData ã使ãã
var chart = new Highcharts.Chart({ chart: { renderTo: 'container', }, series: [{ name: 'value', }, { name: 'cost', }] }); var series_0_data = [0,1,2]; var series_1_data = [2,3,4]; chart.series[0].setData(series_0_data, false); chart.series[1].setData(series_1_data, false); chart.redraw();