
fusioncharts是一个简单好看的柱状统计图,本文中的统计图是由PHP动态生成,要是你想用js生成该柱状图,右击鼠标查看网页源代码。
fusioncharts教程:
include("includes/fusioncharts.php");
$columnChart = new FusionCharts("column2d", "ex1", "100%", 400, "chart-1", "json", '{
"chart":{
"caption":"柱状图",
"subCaption":"fusioncharts多皮肤数据图表",
"numberPrefix":"$",
"theme":"ocean"
},
"data":[
{
"label":"Bakersfield Central",
"value":"880000"
},
{
"label":"Garden Groove harbour",
"value":"730000"
},
{
"label":"Los Angeles Topanga",
"value":"590000"
},
{
"label":"Compton-Rancho Dom",
"value":"520000"
},
{
"label":"Daly City Serramonte",
"value":"330000"
}
]
}');
// Render the chart
$columnChart->render();
fusioncharts统计图演示:http://www.sucaihuo.com/js/862.html