提交 e94b5122 authored 作者: chengye's avatar chengye

测试统计数据

上级 511f8b9b
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
var myChart = echarts.init(document.getElementById('main')); var myChart = echarts.init(document.getElementById('main'));
$.get('/jz_area', function (res) { $.get('/jz_area', function (res) {
var data = JSON.parse(res); var data = JSON.parse(res);
console.log(data);
var vals,area;
myChart.setOption({ myChart.setOption({
title: { title: {
text: '各区域基站数据统计' text: '各区域基站数据统计'
...@@ -44,7 +41,7 @@ ...@@ -44,7 +41,7 @@
xAxis: [ xAxis: [
{ {
type: 'category', type: 'category',
data: area, data: data[0],
axisTick: { axisTick: {
alignWithLabel: true alignWithLabel: true
} }
...@@ -60,7 +57,7 @@ ...@@ -60,7 +57,7 @@
name: '直接访问', name: '直接访问',
type: 'bar', type: 'bar',
barWidth: '60%', barWidth: '60%',
data: vals data: data[1]
} }
] ]
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论