Commit ff8d254f authored by yaqizhang's avatar yaqizhang

事件类型统计圆形饼图

parent eedb64ef
......@@ -273,7 +273,7 @@ function createDeviceAlarmNumBarChart(options) {
createEchart(option);
}
// 创建环形 chart
// 事件类型统计
function createPieChart(options) {
var opts = {
name: options.name,
......@@ -301,7 +301,7 @@ function createPieChart(options) {
},
series: [
{
// name: 'Nightingale Chart',
name: 'Access From',
type: 'pie',
// radius: [15, 80],
center: ['50%', '50%'],
......@@ -314,7 +314,7 @@ function createPieChart(options) {
      }
    }
  },
roseType: 'area',
// roseType: 'area',
itemStyle: {
borderRadius: 8
},
......@@ -954,7 +954,7 @@ function createDeviceNumPieChart(eleId) {
if (res.code === 0) {
var options = {
eleId: eleId,
name: 'categoryAlarmNum',
name: 'deviceNumPie',
legendData: [],
seriesData: [],
series: [],
......@@ -1111,7 +1111,7 @@ function renderLegendTypeNum(eleId) {
if (res.code === 0) {
var options = {
eleId: eleId,
name: 'deviceNumPie',
name: 'categoryAlarmNum',
series: [],
xAxisData: [],
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