Commit ff8d254f authored by yaqizhang's avatar yaqizhang

事件类型统计圆形饼图

parent eedb64ef
...@@ -273,7 +273,7 @@ function createDeviceAlarmNumBarChart(options) { ...@@ -273,7 +273,7 @@ function createDeviceAlarmNumBarChart(options) {
createEchart(option); createEchart(option);
} }
// 创建环形 chart // 事件类型统计
function createPieChart(options) { function createPieChart(options) {
var opts = { var opts = {
name: options.name, name: options.name,
...@@ -301,7 +301,7 @@ function createPieChart(options) { ...@@ -301,7 +301,7 @@ function createPieChart(options) {
}, },
series: [ series: [
{ {
// name: 'Nightingale Chart', name: 'Access From',
type: 'pie', type: 'pie',
// radius: [15, 80], // radius: [15, 80],
center: ['50%', '50%'], center: ['50%', '50%'],
...@@ -314,7 +314,7 @@ function createPieChart(options) { ...@@ -314,7 +314,7 @@ function createPieChart(options) {
      }       }
    }     }
  },   },
roseType: 'area', // roseType: 'area',
itemStyle: { itemStyle: {
borderRadius: 8 borderRadius: 8
}, },
...@@ -954,7 +954,7 @@ function createDeviceNumPieChart(eleId) { ...@@ -954,7 +954,7 @@ function createDeviceNumPieChart(eleId) {
if (res.code === 0) { if (res.code === 0) {
var options = { var options = {
eleId: eleId, eleId: eleId,
name: 'categoryAlarmNum', name: 'deviceNumPie',
legendData: [], legendData: [],
seriesData: [], seriesData: [],
series: [], series: [],
...@@ -1111,7 +1111,7 @@ function renderLegendTypeNum(eleId) { ...@@ -1111,7 +1111,7 @@ function renderLegendTypeNum(eleId) {
if (res.code === 0) { if (res.code === 0) {
var options = { var options = {
eleId: eleId, eleId: eleId,
name: 'deviceNumPie', name: 'categoryAlarmNum',
series: [], series: [],
xAxisData: [], xAxisData: [],
seriesData: [], seriesData: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment