Highcharts 动态加载数据

前言 :首先 请自行到官网去下载js文件 http://www.hcharts.cn

后台传过来的数据格式:

{"钢联":[{"period":300,"time":"10:01:00","app_id":"123","app_name":"钢联","sessions":0},{"period":300,"time":"10:02:00","app_id":"123","app_name":"钢联","sessions":0},{"period":300,"time":"10:03:00","app_id":"123","app_name":"钢联","sessions":0},{"period":300,"time":"10:04:00","app_id":"123","app_name":"钢联","sessions":2},{"period":300,"time":"10:05:00","app_id":"123","app_name":"钢联","sessions":14}],"旅游族":[{"period":300,"time":"10:01:00","app_id":"test123","app_name":"旅游族","sessions":0},{"period":300,"time":"10:02:00","app_id":"test123","app_name":"旅游族","sessions":1},{"period":300,"time":"10:03:00","app_id":"test123","app_name":"旅游族","sessions":25},{"period":300,"time":"10:04:00","app_id":"test123","app_name":"旅游族","sessions":0},{"period":300,"time":"10:05:00","app_id":"test123","app_name":"旅游族","sessions":0}]}


下面 前台 获取数据 展示




如有 不规范之处,还望指出 ,谢谢!

你可能感兴趣的:(Highcharts,json,Ajax)