some modify

This commit is contained in:
jiaming 2018-12-21 15:48:24 +08:00
parent 2aa6c2fb19
commit 06dc1922ae
2 changed files with 60 additions and 71 deletions

Binary file not shown.

View File

@ -57,6 +57,14 @@ data: {
x: { x: {
// //
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳']
},
labelLine: {
// 使 使
color: '#2b7bfb',
//
data: ['车流量'],
// rect | rectangle
type: 'rectangle'
} }
} }
</highlight-code> </highlight-code>
@ -219,9 +227,10 @@ data: {
}, },
</highlight-code> </highlight-code>
</div> </div>
<div id="radar-chart" />
</border-box-7> </border-box-7>
<border-box-7 class="chart-item" id="radar-chart"> <border-box-7 class="chart-item">
<radar-chart :data="radarChartData1" :colors="colors" class="chart" /> <radar-chart :data="radarChartData1" :colors="colors" class="chart" />
<div class="config-info"> <div class="config-info">
@ -243,7 +252,10 @@ data: {
label: { label: {
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] // data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] //
}, },
labelLine: ['同期', '环期'] // label // label
labelLine: {
data: ['同期', '环期']
}
} }
</highlight-code> </highlight-code>
</div> </div>
@ -689,9 +701,12 @@ export default {
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳']
}, },
y: { y: {
},
labelLine: {
color: '#2b7bfb',
data: ['车流量'],
type: 'rectangle'
} }
// showColumnBG: true,
// bgColor: 'rgba(200, 200, 200, 0.2)'
}, },
columnChartData2: { columnChartData2: {
@ -712,9 +727,12 @@ export default {
unit: '次', unit: '次',
grid: true, grid: true,
gridColor: '#333' gridColor: '#333'
},
labelLine: {
color: '#2b7bfb',
data: ['车流量'],
type: 'rectangle'
} }
// showColumnBG: true,
// bgColor: 'rgba(200, 200, 200, 0.2)'
}, },
columnChartData3: { columnChartData3: {
@ -734,6 +752,11 @@ export default {
grid: true, grid: true,
gridColor: '#333' gridColor: '#333'
}, },
labelLine: {
color: '#2b7bfb',
data: ['车流量'],
type: 'rectangle'
},
showColumnBG: true, showColumnBG: true,
bgColor: 'rgba(200, 200, 200, 0.2)' bgColor: 'rgba(200, 200, 200, 0.2)'
}, },
@ -779,6 +802,11 @@ export default {
unit: '次', unit: '次',
grid: true, grid: true,
gridColor: '#333' gridColor: '#333'
},
labelLine: {
color: ['#247af7', '#47bf97', '#e3b4a2', '#fafb5d', '#ff23d4'],
data: ['玩具', '书本', '食品', '服装', '娱乐'],
type: 'rectangle'
} }
}, },
@ -799,6 +827,11 @@ export default {
y: { y: {
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳']
}, },
labelLine: {
color: '#2b7bfb',
data: ['车流量'],
type: 'rectangle'
},
columnType: 'round', columnType: 'round',
horizon: true, horizon: true,
showColumnBG: true showColumnBG: true
@ -814,76 +847,24 @@ export default {
x: { x: {
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'], data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'],
noAxisLine: true, noAxisLine: true,
noAxisTag: true noAxisTag: true,
offset: 10
}, },
y: { y: {
min: 0, min: 0,
max: 450, max: 450,
noAxisLine: true, noAxisLine: true,
noAxisTag: true noAxisTag: true,
offset: 1
},
labelLine: {
color: '#2b7bfb',
data: ['车流量'],
type: 'rectangle'
}, },
showColumnBG: true showColumnBG: true
}, },
// columnChartData1: {
// data: [
// {
// data: [180, 290, 420, 200, 350, 219]
// },
// {
// data: [
// [45, 32, 66],
// [122, 49, 218],
// [40, 129, 216],
// [45, 66, 45],
// [110, 120, 201],
// [23, 40, 12]
// ]
// }
// ],
// x: {
// data: ['西', '', '', '', '', '']
// },
// y: {
// grid: true,
// gridType: 'dashed',
// unit: '',
// min: 0,
// max: 600
// }
// },
// columnChartData1: {
// data: [
// {
// data: [180, 290, 420, 200, 350, 219]
// },
// {
// data: [
// [45, 32, 66],
// [122, 49, 218],
// [40, 129, 216],
// [45, 66, 45],
// [110, 120, 201],
// [23, 40, 12]
// ]
// }
// ],
// x: {
// grid: true,
// unit: '',
// min: 0,
// max: 600
// },
// y: {
// data: ['西', '', '', '', '', '']
// },
// bgColor: 'rgba(250, 250, 250, 0.1)',
// columnType: 'round',
// showColumnBG: true,
// horizon: true
// },
radarChartData1: { radarChartData1: {
data: [ data: [
{ {
@ -896,7 +877,9 @@ export default {
label: { label: {
data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳'] data: ['西峡', '周口', '南阳', '驻马店', '郑州', '洛阳']
}, },
labelLine: ['同期', '环期'] labelLine: {
data: ['同期', '环期']
}
}, },
radarChartData2: { radarChartData2: {
@ -916,7 +899,9 @@ export default {
color: 'colors', color: 'colors',
fontSize: 10 fontSize: 10
}, },
labelLine: ['同期', '环期'], labelLine: {
data: ['同期', '环期']
},
rayLineType: 'dashed', rayLineType: 'dashed',
rayLineColor: 'colors', rayLineColor: 'colors',
ringNum: 5, ringNum: 5,
@ -944,7 +929,9 @@ export default {
color: 'colors', color: 'colors',
fontSize: 10 fontSize: 10
}, },
labelLine: ['同期', '环期'], labelLine: {
data: ['同期', '环期']
},
rayLineType: 'dashed', rayLineType: 'dashed',
rayLineColor: 'colors', rayLineColor: 'colors',
ringNum: 5, ringNum: 5,
@ -972,7 +959,9 @@ export default {
color: 'colors', color: 'colors',
fontSize: 10 fontSize: 10
}, },
labelLine: ['同期', '环期'], labelLine: {
data: ['同期', '环期']
},
rayLineType: 'dashed', rayLineType: 'dashed',
rayLineColor: 'colors', rayLineColor: 'colors',
ringNum: 5, ringNum: 5,