有人用过open flash chart 吗?能给个demo吗?
1个回答
展开全部
不知道你要的结果是不是要一个数组出来
Array ( [bg_colour] => #ffffff [elements] => Array ( [0] => Array ( [type] => pie [tip] => #label#
$#val# (#percent#) [colours] => Array ( [0] => #00ff00 [1] => #ff0000 [2] => #0000ff ) [alpha] => 0.3 [animate] => 0 [start-angle] => 90 [gradient-fill] => 1 [no-labe-ls] => 1 [values] => Array ( [0] => Array ( [value] => 13400 [label] => a ) [1] => Array ( [value] => 9344 [label] => b ) [2] => Array ( [value] => 4066 [label] => c ) ) ) ) )
如果是的话就直接这样:json_decode($restult,true);
Array ( [bg_colour] => #ffffff [elements] => Array ( [0] => Array ( [type] => pie [tip] => #label#
$#val# (#percent#) [colours] => Array ( [0] => #00ff00 [1] => #ff0000 [2] => #0000ff ) [alpha] => 0.3 [animate] => 0 [start-angle] => 90 [gradient-fill] => 1 [no-labe-ls] => 1 [values] => Array ( [0] => Array ( [value] => 13400 [label] => a ) [1] => Array ( [value] => 9344 [label] => b ) [2] => Array ( [value] => 4066 [label] => c ) ) ) ) )
如果是的话就直接这样:json_decode($restult,true);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询