From 0981b9e6e810952adc356b3fdc82c1bf7b201d85 Mon Sep 17 00:00:00 2001 From: jiaming <743192023@qq.com> Date: Fri, 14 Dec 2018 19:44:45 +0800 Subject: [PATCH] some modify --- src/views/demo/chart.vue | 418 +++++++++++++++++++++++---------------- 1 file changed, 251 insertions(+), 167 deletions(-) diff --git a/src/views/demo/chart.vue b/src/views/demo/chart.vue index 005193b..7e7ed85 100644 --- a/src/views/demo/chart.vue +++ b/src/views/demo/chart.vue @@ -1,90 +1,165 @@ @@ -530,69 +623,60 @@ export default { polylineChartData4: { data: [ { - data: [ - 5, '', '', '', - 2, '', '', '', - 4, '', '', '', - 2, '', '', '', - 3, '', '', '', - 2 - ], + data: [3, 4.5, 4, 6, 5, 4, 3], dashed: true }, { - data: [ - '', 4, '', '', - '', 3, '', '', - '', 4, '', '', - '', 2, '', '', - '', 1, '', '', - '', 2 - ], + data: [0.5, 1, 0.8, 3, 2, 1.5, 0.5], fillColor: ['rgba(61, 231, 201, 0.5)', 'rgba(61, 231, 201, 0.1)'] }, { - data: [ - '', '', 3, '', - '', '', 2, '', - '', '', 1, '', - '', '', 2, '', - '', '', 1, '', - '', '', 2 - ], + data: [1, 3, 2, 4, 3, 2, 1], type: 'smoothline', fillColor: ['rgba(255, 197, 61, 0.4)', 'rgba(255, 197, 61, 0.1)'] }, { - data: [ - '', '', '', 3, - '', '', '', 1, - '', '', '', 5, - '', '', '', 2, - '', '', '', 4, - '', '', '', 2 - ], + data: [2, 2.5, 3, 5, 4, 3, 2], type: 'column', columnColor: ['rgba(52, 36, 50, 0.8)', 'rgba(52, 36, 50, 0.4)'] } ], x: { - data: [ - '', '', '', '', '', '', '10/07', - '', '', '', '', '', '', '10/14', - '', '', '', '', '', '', '10/21', - '', '', '' - ] + data: ['10/01', '10/02', '10/03', '10/04', '10/05', '10/06', '10/07'] }, y: { max: 6, min: 0, - num: 6, unit: '单位' }, labelLine: ['收费系统', '收费系统', '监控系统', '供配电系统'], - color: ['#00baff', '#3de7c9', '#ffc53d', '#342432'] - } + color: ['#00baff', '#3de7c9', '#ffc53d', '#342432'], + boundaryGap: true + }, + + radarChartData: { + data: [ + { + data: [180, 250, 300, 500, 600], + dashed: true + }, + { + data: [210, 330, 450, 261, 299] + } + ], + label: { + data: ['石家庄', '周口', '南阳', '驻马店', '郑州'], + color: '#f92672', + fontSize: 12 + }, + labelLine: ['同期', '环期'], + circleColor: '#f92672', + rayLineColor: '#f92672', + rayLineOffset: Math.PI * 1, + + }, + + colors: ['#00baff', '#3de7c9'] } } } @@ -610,6 +694,7 @@ export default { flex-direction: row; margin: 20px 0px; margin-left: 20%; + align-items: center; } .chart { @@ -620,12 +705,11 @@ export default { .config-info { padding: 0px 30px; - font-size: 15px; + display: flex; + flex-direction: column; - .header { - font-size: 20px; - font-weight: bold; - margin-bottom: 10px; + .highlight-code { + margin: -30px 0px; } } }