ID:37152944
大小:122.00 KB
页数:12页
时间:2019-05-19
4、 "dot-size": 4, "halo-size":0, "values": [1.5,1.69,1.88,2.06,2.21,2.34,2.43,2.48,2.49,2.47,2.40,2.30,2.17,2.01,1.83,1.64,1.44,1.24,1.05,0.88,0.74,0.62,0.54,0.50,0.50,0.54,0.61,0.72,0.86,1.03,1.22,1.41,1.61,1.81,1.99,2.15,2.29,2.39,2.46,2.49,2.
5、48,{"value":2.44,"colour":"#FF0000","tip":"monkies"},2.35,2.23,2.08] } ],“x_axis”:{ “labels”:{ “rotate”:“vertical”, “labels”:["2:00am%?,"2:10","2:20","2:30","2:40","2:50", "3:00am","3:10","3:20","3:30","3:40","3:50",
6、 "4:00am","4:10","4:20","4:30","4:40","4:50", "5:00am","5:10","5:20","5:30","5:40","5:50", "6:00am","6:10","6:20","6:30","6:40","6:50", "7:00am","7:10","7:20","7:30","7:40","7:50", "8:00am","8:10","
7、8:20","8:30","8:40","8:50", "9:00am","9:10","9:20"] } },“y_axis”:{ “max”: 3 }}数据放在data.txt里,演示上一节提到open-flash-chart2的数据是通过存储在txt文件中,然后通过类似那个http://yoururl/chart.html?ofc=datafile.txt这样的形式来加载不同的数据,当然ofc后面的参数可以是php文件,php类库的使用将在以后的教程中出现,本节
8、将讨论使用js加载数据的另一种方法,代码如下:是
此文档下载收益归作者所有