Browse Source

图表

feature
jiangyy 3 years ago
parent
commit
979c714f45
  1. 2
      src/views/modules/visual/communityGovern/shijianchuli/lineOption.js
  2. 12
      src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue

2
src/views/modules/visual/communityGovern/shijianchuli/lineOption.js

@ -129,7 +129,7 @@ export function lineOption () {
},
},
barWidth: 6,
barWidth: 8,
// data: serviceCount
},

12
src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue

@ -150,7 +150,7 @@ import * as echarts from 'echarts';
import 'echarts-gl';
import { getPie3D, getParametricEquation } from './chart.js' //js
const color = ['#00b3ff', '#ffcc26']
const color = ['#0075ff', '#ffa516']
export default {
name: "shijianchulifenxi",
@ -469,10 +469,10 @@ export default {
// dataClosed = 5
// dataPro = 95
dataClosed = 10
dataPro = 90
dataClosedLine = 10
dataProLine = 90
// dataClosed = 10
// dataPro = 90
// dataClosedLine = 10
// dataProLine = 90
// dataClosed = 20
// dataPro = 80
@ -794,7 +794,7 @@ export default {
// let statusChart = echarts.init(document.getElementById('cityGreenLand-charts'));
this.statusChart = echarts.init(document.getElementById('cityGreenLand'));
// option, 3d,
this.option = getPie3D(this.optionData, 0.8, 300, 28, 22, 0.4, this.beta)
this.option = getPie3D(this.optionData, 0.8, 300, 28, 22, 0.5, this.beta)
console.log(this.option)
this.statusChart.setOption(this.option)
// label线2d使labelLine3dsetOption

Loading…
Cancel
Save