|
|
@@ -20,6 +20,7 @@ export default {
|
|
|
methods: {
|
|
|
getOption() {
|
|
|
const baseWidth = 20
|
|
|
+ const offsetWidth = 15
|
|
|
this.option = {
|
|
|
backgroundColor: 'rgb(2, 10, 33)',
|
|
|
color: [],
|
|
|
@@ -73,7 +74,7 @@ export default {
|
|
|
symbol: 'rect',
|
|
|
|
|
|
symbolSize: ['100%', '100%'],
|
|
|
- symbolOffset: [-baseWidth, 0],
|
|
|
+ symbolOffset: [-offsetWidth, 0],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -105,7 +106,7 @@ export default {
|
|
|
type: 'pictorialBar',
|
|
|
symbol: 'triangle',
|
|
|
symbolRotate: 180,
|
|
|
- symbolOffset: [-baseWidth, '96%'],
|
|
|
+ symbolOffset: [-offsetWidth, '96%'],
|
|
|
symbolSize: ['100%', 12],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
@@ -121,7 +122,7 @@ export default {
|
|
|
symbol: 'triangle',
|
|
|
symbolRotate: 180,
|
|
|
symbolSize: [baseWidth, 12],
|
|
|
- symbolOffset: [-baseWidth, '-0%'],
|
|
|
+ symbolOffset: [-offsetWidth, '-0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
itemStyle: {
|
|
|
@@ -135,7 +136,7 @@ export default {
|
|
|
symbol: 'rect',
|
|
|
|
|
|
symbolSize: [baseWidth, '100%'],
|
|
|
- symbolOffset: [-baseWidth, 0],
|
|
|
+ symbolOffset: [-offsetWidth, 0],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
itemStyle: {
|
|
|
@@ -162,7 +163,7 @@ export default {
|
|
|
show: true,
|
|
|
distance: 10,
|
|
|
color: '#fff',
|
|
|
- position: [-25, -20]
|
|
|
+ position: [-baseWidth + 5, -20]
|
|
|
},
|
|
|
zlevel: -1
|
|
|
|
|
|
@@ -177,7 +178,7 @@ export default {
|
|
|
symbolRotate: 180,
|
|
|
|
|
|
symbolSize: [baseWidth, 12],
|
|
|
- symbolOffset: [-baseWidth, '0%'],
|
|
|
+ symbolOffset: [-offsetWidth, '0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -196,7 +197,7 @@ export default {
|
|
|
symbol: 'rect',
|
|
|
|
|
|
symbolSize: [baseWidth, '100%'],
|
|
|
- symbolOffset: [baseWidth, '0%'],
|
|
|
+ symbolOffset: [offsetWidth, '0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -231,7 +232,7 @@ export default {
|
|
|
symbolRotate: 180,
|
|
|
|
|
|
symbolSize: [baseWidth, 12],
|
|
|
- symbolOffset: [baseWidth, '96%'],
|
|
|
+ symbolOffset: [offsetWidth, '96%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -249,7 +250,7 @@ export default {
|
|
|
symbolRotate: 180,
|
|
|
|
|
|
symbolSize: [baseWidth, 12],
|
|
|
- symbolOffset: [baseWidth, '0%'],
|
|
|
+ symbolOffset: [offsetWidth, '0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -264,7 +265,7 @@ export default {
|
|
|
symbol: 'rect',
|
|
|
|
|
|
symbolSize: [baseWidth, '100%'],
|
|
|
- symbolOffset: [baseWidth, '0%'],
|
|
|
+ symbolOffset: [offsetWidth, '0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|
|
|
@@ -292,7 +293,7 @@ export default {
|
|
|
show: true,
|
|
|
distance: 10,
|
|
|
color: '#fff',
|
|
|
- position: [35, -20]
|
|
|
+ position: [baseWidth - 5, -20]
|
|
|
},
|
|
|
zlevel: -1
|
|
|
|
|
|
@@ -306,7 +307,7 @@ export default {
|
|
|
symbolRotate: 180,
|
|
|
|
|
|
symbolSize: [baseWidth, 12],
|
|
|
- symbolOffset: [baseWidth, '0%'],
|
|
|
+ symbolOffset: [offsetWidth, '0%'],
|
|
|
barMaxWidth: 'auto',
|
|
|
barWidth: baseWidth,
|
|
|
|