highchats与php结合生成动态统计图

2020-12-13 06:06

阅读:201

YPE HTML>

标签:style   blog   class   c   code   java   




series: [{
            type: ‘pie‘,
            name: ‘Browser share‘,
            data: [
                [‘Firefox‘,   45.0],
                [‘IE‘,       26.8],
                {
                    name: ‘Chrome‘,
                    y: 12.8,
                    sliced: true,
                    selected: true
                },
                [‘Safari‘,    8.5],
                [‘Opera‘,     6.2],
                [‘Others‘,   0.7]
            ]
        }]

主要看这段:

{
name: ‘Chrome‘,
y: 12.8,
sliced: true,
selected: true
}

FusionCharts
‘上海‘, ‘y‘=>28.2), array(‘name‘=>‘北京‘, ‘y‘=>48.2), array(‘name‘=>‘广东‘, ‘y‘=>18.2), ); $data = json_encode($b); echo($data); } ?>

以下是php输出json数据,供js使用:

输出:
{"2":{"name":"lo","data":[0,0]},"3":{"name":"eth0","data":[0.40377,0.00353]}}


js调用:
series: [
						ds[2], ds[3]
					]

highchats与php结合生成动态统计图,搜素材,soscw.com

highchats与php结合生成动态统计图

标签:style   blog   class   c   code   java   

原文地址:http://blog.csdn.net/u014649204/article/details/26356887


评论


亲,登录后才可以留言!