fusioncharts六种不同的PHP图表实例

 更新 2023-03-24 浏览 465次

fusioncharts六种不同的PHP图表实例
描述:fusioncharts是一个简单好看的柱状统计图,本文中的统计图是由PHP动态生成,要是你想用js生成该柱状图,右击鼠标查看网页源代码。
基础属性
详细介绍

标准图表

1
<div id="chart-1" style='width:800px;height:380px‘></div>

fusioncharts在线生成柱状图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();


相关内容