diff --git a/public/img/img12.png b/public/img/img12.png new file mode 100644 index 0000000..a5b6aec Binary files /dev/null and b/public/img/img12.png differ diff --git a/public/img/img13.png b/public/img/img13.png new file mode 100644 index 0000000..cefa3b2 Binary files /dev/null and b/public/img/img13.png differ diff --git a/src/components/ringPie/index.vue b/src/components/ringPie/index.vue index bafbb1f..7e9f236 100644 --- a/src/components/ringPie/index.vue +++ b/src/components/ringPie/index.vue @@ -5,7 +5,7 @@ --> @@ -32,7 +36,7 @@ export default { data() { return { option: null - + } }, mounted() { @@ -42,47 +46,88 @@ export default { getEchart() { let myChart = echarts.init(document.getElementById('chart_rp')); this.option = { + title: { + text: '50%', + // 副标题 + subtext: "车位已使用", + // 主副标题间距 + itemGap: 0, + x: 'center', + y: 'center', + // 主标题样式 + textStyle: { + fontSize: '26', + color: '#fff' + }, + // 副标题样式 + subtextStyle: { + fontSize: '14', + fontWeight: '100', + color: '#8A9AC5' + } + }, series: [{ name: '环形饼图', type: 'pie', - radius: ['68%', '80%'], + radius: ['48%', '70%'], hoverAnimation: false, avoidLabelOverlap: false, label: { show: false, position: 'center' }, + itemStyle: { + normal: { + // 设置扇形的阴影 + shadowBlur: 30, + shadowColor: 'rgba(107,106,106,.6)', + shadowOffsetX: 'center', + shadowOffsetY: 'center' + }, + }, emphasis: { label: { - show: false + label: { + show: false, + fontSize: '30', + fontWeight: 'bold' + } } }, labelLine: { show: false }, data: [{ - value: 6, + value: 6, name: '区块链', itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ - offset: 0, - color: '#6984fe' - },{ - offset: 1, - color: '#24d1fd' - }]) - } + offset: .2, + color: '#47BDFF' + }, { + offset: .5, + color: '#34AEFF' + }, { + offset: 1, + color: '#0589FF' + } + ]), + // borderRadius:800, + }, + } - },{ - value: 4, + }, + { + value: 4, name: '大数据', itemStyle: { normal: { - color: '#eee' + color: '#3B4257', } } - }] + } + ] }] } @@ -94,36 +139,55 @@ export default { } }, beforeDestroy() { - + } }; diff --git a/src/components/scrollArc/index.vue b/src/components/scrollArc/index.vue index 2e8881e..3f439c5 100644 --- a/src/components/scrollArc/index.vue +++ b/src/components/scrollArc/index.vue @@ -114,7 +114,8 @@ export default { color: '#5d83ff', borderColor: '#fff', borderWidth: 2, - opacity: 1 + opacity: 1, + }, }, areaStyle: { diff --git a/src/components/szBar/index.vue b/src/components/szBar/index.vue index ed83f02..e20174c 100644 --- a/src/components/szBar/index.vue +++ b/src/components/szBar/index.vue @@ -5,7 +5,7 @@ --> @@ -34,7 +37,7 @@ export default { methods: { getEchart() { let myChart = echarts.init(document.getElementById('chart_bar')); - let barWidth = '10%'; + let barWidth = '15%'; let dataCoord = [ {coord: [0, 9]}, {coord: [1, 12]}, @@ -80,6 +83,22 @@ export default { color: 'rgba(40, 103, 168, 0.3)', } }, + }, + tooltip: { + trigger: 'axis', + showContent: true, + axisPointer: { + type: 'shadow', + shadowStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 1, + color: '#5d83ff' + },{ + offset: 0, + color: 'rgba(255, 255, 255, 0)' + }]) + } + }, }, yAxis: { axisLabel: { @@ -116,12 +135,20 @@ export default { offset: 1, color: 'rgba(0, 0, 0, 0)' },{ - offset: 0.5, + offset: 0.6, color: '#466e71' },{ offset: 0, - color: '#eb9b44' - }]) + color: '#43FFFF' + }]), + label: { + position:"top", + show: true, //开启显示 + textStyle: { //数值样式 + color: '#fff', + fontSize: 10 + } + } } }, barWidth: barWidth, @@ -129,51 +156,18 @@ export default { symbol: 'circle', itemStyle: { normal: { - color: '#eb9b44', - shadowColor: '#eb9b44', + color: '#43FFFF', + shadowColor: '#43FFFF', shadowBlur: 20 } }, - symbolSize: [10, 10], // 容器大小 + symbolSize: [5, 5], // 容器大小 symbolOffset: [0, 0], // 位置偏移 data: dataCoord, }, data: this.yData1 }, - { - name: '负值柱状图', - type: 'bar', - stack: 'one', - itemStyle: { - normal: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ - offset: 0, - color: 'rgba(0, 0, 0, 0)' - },{ - offset: 0.5, - color: '#774a75' - },{ - offset: 1, - color: '#b34d69' - }]) - } - }, - barWidth: barWidth, - markPoint: { - symbol: 'circle', - itemStyle: { - normal: { - color: '#b34d69', - shadowColor: '#b34d69', - shadowBlur: 20 - } - }, - symbolSize: [10, 10], - symbolOffset: [0, 0], - data: dataCoord2, - }, - data: this.yData2 - } + ] }; myChart.setOption(this.option, true); @@ -190,6 +184,11 @@ export default {