User:Hisa: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | |||
<script type="text/javascript" src="http://f5-webapp2.gsc.riken.jp/rb_js/jquery-1.7.1.min.js"></script> | |||
<script src="http://f5-webapp2.gsc.riken.jp/rb_js/highcharts/highcharts.js" type="text/javascript"></script> | |||
<div id="container2" style="width: 100%; height: 400px"></div> | |||
<script type="text/javascript"> | |||
var chart = new Highcharts.Chart({ | |||
chart: { | |||
renderTo: 'container2', | |||
defaultSeriesType: 'bar' | |||
}, | |||
xAxis: { | |||
categories: ['Africa', 'America', 'Asia'], | |||
title: { | |||
text: null | |||
} | |||
}, | |||
series: [{ | |||
name: 'value', | |||
}, { | |||
name: 'cost', | |||
}] | |||
}); | |||
var series_0_data = [5,1,2]; | |||
chart.series[0].setData(series_0_data, false); | |||
chart.redraw(); | |||
</script> | |||
</html> |
Revision as of 14:52, 17 February 2012