|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div style="height:250px;width:100%;margin-top: 30px;" /> |
|
|
|
<div style="height:calc(100% - 5px);width:100%;margin-top: 0px;" /> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import * as echarts from 'echarts' |
|
|
@ -43,7 +43,7 @@ export default { |
|
|
|
if (currentValue && currentValue.SortKeys) { |
|
|
|
this.xDataArray = currentValue.SortKeys |
|
|
|
} |
|
|
|
newValue.PerCustomerDeviationDetailItem.forEach(el => { |
|
|
|
(newValue.PerCustomerDeviationDetailItem || []).forEach(el => { |
|
|
|
receivableArray = [] |
|
|
|
this.xDataArray.forEach(elChild => { |
|
|
|
receivableArray.push(el.Item[elChild]) |
|
|
@ -72,11 +72,43 @@ export default { |
|
|
|
this.chart = echarts.init(this.$el, 'macarons') |
|
|
|
this.chart.setOption({ |
|
|
|
color: ['#126db9'], |
|
|
|
dataZoom: [ |
|
|
|
{ |
|
|
|
// start: 0,//默认为0 |
|
|
|
// end: 100,//默认为100 |
|
|
|
type: 'slider', |
|
|
|
show: true, |
|
|
|
// xAxisIndex: [0], |
|
|
|
handleSize: 0,//滑动条的 左右2个滑动条的大小 |
|
|
|
startValue: 0, // 初始显示值 |
|
|
|
endValue: 30, // 结束显示值 |
|
|
|
height: 10,//组件高度 |
|
|
|
left: '5%', //左边的距离 |
|
|
|
right: '5%',//右边的距离 |
|
|
|
bottom: 10,//底边的距离 |
|
|
|
borderColor: "#000", |
|
|
|
fillerColor: '#269cdb', |
|
|
|
borderRadius: 5, |
|
|
|
backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色 |
|
|
|
showDataShadow: false,//是否显示数据阴影 默认auto |
|
|
|
showDetail: false,//即拖拽时候是否显示详细数值信息 默认true |
|
|
|
realtime: false, //是否实时更新 |
|
|
|
filterMode: 'filter', |
|
|
|
}, |
|
|
|
//下面这个属性是里面拖到 |
|
|
|
{ |
|
|
|
type: 'inside', |
|
|
|
show: true, |
|
|
|
// xAxisIndex: [0], |
|
|
|
start: 1,//默认为1 |
|
|
|
end: 10,//默认为100 |
|
|
|
}, |
|
|
|
], |
|
|
|
grid: { |
|
|
|
top: '10%', |
|
|
|
left: '5%', |
|
|
|
right: '15%', |
|
|
|
bottom: '0%', |
|
|
|
right: '5%', |
|
|
|
bottom: '15%', |
|
|
|
containLabel: true |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|