apache / apache/echarts

markArea.data.name

Open
#6,940 7 comments 0 reactions 0 assignees View on GitHub
bug priority: high
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### One-line summary [datazoom可滑动markArea的文字标签会重叠]

### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]:v3.7.2
+ Browser version [浏览器类型和版本]:chrome
+ OS Version [操作系统类型和版本]:windows7

### Expected behaviour [期望结果]
根据markArea的不见而隐藏

### ECharts option [ECharts配置项]

```javascript

var timeData = [
'2015-06-02','2015-06-03','2015-06-04','2015-06-05','2015-06-08','2015-06-09','2015-06-10','2015-06-11','2015-06-12','2015-06-15','2015-06-16','2015-06-17','2015-06-18','2015-06-19','2015-06-23','2015-06-24','2015-06-25','2015-06-26','2015-06-29','2015-06-30','2015-07-01','2015-07-02','2015-07-03','2015-07-06','2015-07-07','2015-07-08','2015-07-09','2015-07-10','2015-07-13','2015-07-14','2015-07-15','2015-07-16','2015-07-17','2015-07-20','2015-07-21','2015-07-22','2015-07-23','2015-07-24','2015-07-27','2015-07-28','2015-07-29','2015-07-30','2015-07-31','2015-08-03','2015-08-04','2015-08-05','2015-08-06','2015-08-07','2015-08-10','2015-08-11','2015-08-12','2015-08-13','2015-08-14','2015-08-17','2015-08-18','2015-08-19','2015-08-20','2015-08-21','2015-08-24','2015-08-25','2015-08-26','2015-08-27','2015-08-28','2015-08-31','2015-09-01','2015-09-02','2015-09-07','2015-09-08','2015-09-09','2015-09-10','2015-09-11','2015-09-14','2015-09-15','2015-09-16','2015-09-17','2015-09-18','2015-09-21','2015-09-22','2015-09-23','2015-09-24','2015-09-25','2015-09-28','2015-09-29','2015-09-30','2015-10-08','2015-10-09','2015-10-12','2015-10-13','2015-10-14','2015-10-15','2015-10-16','2015-10-19','2015-10-20','2015-10-21','2015-10-22','2015-10-23','2015-10-26','2015-10-27','2015-10-28','2015-10-29','2015-10-30','2015-11-02','2015-11-03','2015-11-04','2015-11-05','2015-11-06','2015-11-09','2015-11-10','2015-11-11','2015-11-12','2015-11-13','2015-11-16','2015-11-17','2015-11-18','2015-11-19','2015-11-20','2015-11-23','2015-11-24','2015-11-25','2015-11-26','2015-11-27','2015-11-30','2015-12-01','2015-12-02','2015-12-03','2015-12-04','2015-12-07','2015-12-08','2015-12-09','2015-12-10','2015-12-11','2015-12-14','2015-12-15','2015-12-16','2015-12-17','2015-12-18','2015-12-21','2015-12-22','2015-12-23','2015-12-24','2015-12-25','2015-12-28','2015-12-29','2015-12-30','2015-12-31','2016-01-04','2016-01-05','2016-01-06','2016-01-07','2016-01-08','2016-01-11','2016-01-12','2016-01-13','2016-01-14','2016-01-15','2016-01-18','2016-01-19','2016-01-20','2016-01-21','2016-01-22','2016-01-25','2016-01-26','2016-01-27','2016-01-28','2016-01-29','2016-02-01','2016-02-02','2016-02-03','2016-02-04','2016-02-05','2016-02-15','2016-02-16','2016-02-17','2016-02-18','2016-02-19','2016-02-22','2016-02-23','2016-02-24','2016-02-25','2016-02-26','2016-02-29','2016-03-01','2016-03-02','2016-03-03','2016-03-04','2016-03-07','2016-03-08','2016-03-09','2016-03-10','2016-03-11','2016-03-14','2016-03-15','2016-03-16','2016-03-17','2016-03-18','2016-03-21','2016-03-22','2016-03-23','2016-03-24','2016-03-25','2016-03-28','2016-03-29','2016-03-30','2016-03-31','2016-04-01','2016-04-05','2016-04-06','2016-04-07','2016-04-08','2016-04-11','2016-04-12','2016-04-13','2016-04-14','2016-04-15','2016-04-18','2016-04-19','2016-04-20','2016-04-21','2016-04-22','2016-04-25','2016-04-26','2016-04-27','2016-04-28','2016-04-29','2016-05-03','2016-05-04','2016-05-05','2016-05-06','2016-05-09','2016-05-10','2016-05-11','2016-05-12','2016-05-13','2016-05-16','2016-05-17','2016-05-18','2016-05-19','2016-05-20','2016-05-23','2016-05-24','2016-05-25','2016-05-26','2016-05-27','2016-05-30','2016-05-31','2016-06-01','2016-06-02','2016-06-03','2016-06-06','2016-06-07','2016-06-08','2016-06-13','2016-06-14','2016-06-15','2016-06-16','2016-06-17','2016-06-20','2016-06-21','2016-06-22','2016-06-23','2016-06-24','2016-06-27','2016-06-28','2016-06-29','2016-06-30','2016-07-01','2016-07-04','2016-07-05','2016-07-06','2016-07-07','2016-07-08','2016-07-11','2016-07-12','2016-07-13','2016-07-14','2016-07-15','2016-07-18','2016-07-19','2016-07-20','2016-07-21','2016-07-22','2016-07-25','2016-07-26','2016-07-27','2016-07-28','2016-07-29','2016-08-01','2016-08-02','2016-08-03','2016-08-04','2016-08-05','2016-08-08','2016-08-09','2016-08-10','2016-08-11','2016-08-12','2016-08-15','2016-08-16','2016-08-17','2016-08-18','2016-08-19','2016-08-22','2016-08-23','2016-08-24','2016-08-25','2016-08-26','2016-08-29','2016-08-30','2016-08-31','2016-09-01','2016-09-02','2016-09-05','2016-09-06','2016-09-07','2016-09-08','2016-09-09','2016-09-12','2016-09-13','2016-09-14','2016-09-19','2016-09-20','2016-09-21','2016-09-22','2016-09-23','2016-09-26','2016-09-27','2016-09-28','2016-09-29','2016-09-30','2016-10-10','2016-10-11','2016-10-12','2016-10-13','2016-10-14','2016-10-17','2016-10-18','2016-10-19','2016-10-20','2016-10-21','2016-10-24','2016-10-25','2016-10-26','2016-10-27','2016-10-28','2016-10-31','2016-11-01','2016-11-02','2016-11-03','2016-11-04','2016-11-07','2016-11-08','2016-11-09','2016-11-10','2016-11-11','2016-11-14','2016-11-15','2016-11-16','2016-11-17','2016-11-18','2016-11-21','2016-11-22','2016-11-23','2016-11-24','2016-11-25','2016-11-28','2016-11-29','2016-11-30','2016-12-01','2016-12-02','2016-12-05','2016-12-06','2016-12-07','2016-12-08','2016-12-09','2016-12-12','2016-12-13','2016-12-14','2016-12-15','2016-12-16','2016-12-19','2016-12-20','2016-12-21','2016-12-22','2016-12-23','2016-12-26','2016-12-27','2016-12-28','2016-12-29','2016-12-30','2017-01-03','2017-01-04','2017-01-05','2017-01-06','2017-01-09','2017-01-10','2017-01-11','2017-01-12','2017-01-13','2017-01-16','2017-01-17','2017-01-18','2017-01-19','2017-01-20','2017-01-23','2017-01-24','2017-01-25','2017-01-26','2017-02-03','2017-02-06','2017-02-07','2017-02-08','2017-02-09','2017-02-10','2017-02-13','2017-02-14','2017-02-15','2017-02-16','2017-02-17','2017-02-20','2017-02-21','2017-02-22','2017-02-23','2017-02-24','2017-02-27','2017-02-28','2017-03-01','2017-03-02','2017-03-03','2017-03-06','2017-03-07','2017-03-08','2017-03-09','2017-03-10','2017-03-13','2017-03-14','2017-03-15','2017-03-16','2017-03-17','2017-03-20','2017-03-21','2017-03-22','2017-03-23','2017-03-24','2017-03-27','2017-03-28','2017-03-29','2017-03-30','2017-03-31','2017-04-05','2017-04-06','2017-04-07','2017-04-10','2017-04-11','2017-04-12','2017-04-13','2017-04-14','2017-04-17','2017-04-18','2017-04-19','2017-04-20','2017-04-21','2017-04-24','2017-04-25','2017-04-26','2017-04-27','2017-04-28','2017-05-02','2017-05-03','2017-05-04','2017-05-05','2017-05-08','2017-05-09','2017-05-10','2017-05-11','2017-05-12','2017-05-15','2017-05-16','2017-05-17','2017-05-18','2017-05-19','2017-05-22','2017-05-23','2017-05-24','2017-05-25','2017-05-26','2017-05-31','2017-06-01','2017-06-02','2017-06-05','2017-06-06','2017-06-07','2017-06-08','2017-06-09','2017-06-12','2017-06-13','2017-06-14','2017-06-15','2017-06-16','2017-06-19','2017-06-20','2017-06-21','2017-06-22','2017-06-23','2017-06-26','2017-06-27','2017-06-28','2017-06-29','2017-06-30','2017-07-03','2017-07-04','2017-07-05','2017-07-06','2017-07-07','2017-07-10','2017-07-11','2017-07-12','2017-07-13','2017-07-14','2017-07-17'
];
timeData = timeData.map(function (str) {
return str.replace(' ', '\n');
});

myChart.setOption(option = {
title: {
text: '走势图',
/*subtext: '上海砾阳软件有限公司',*/
x: 'right'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
animation: false,
label: {
backgroundColor: '#505765'
}
}
},
color:['#fe7213','#00e65c','#a84ea8','#7272ff','#7cb5ec'],
legend: {
data:['组合收益值','平安','当日收益(上升)','当日收益(下降)','仓位'],
x: 'left'
},
toolbox: {
feature: {
dataZoom: {
yAxisIndex: 'none'
},
restore: {},
saveAsImage: {}
}
},
axisPointer: {
link: {xAxisIndex: 'all'}
},
dataZoom: [
{
show: true,
realtime: true,
start: 30,
end: 70,
xAxisIndex: [0, 1,2]
},
{
type: 'inside',
realtime: true,
start: 30,
end: 70,
xAxisIndex: [0, 1,2]
}
],
grid: [{
left: 50,
right: 50,
height: '40%'
}, {
left: 50,
right: 50,
top: '60%',
height: '10%'
}, {
left: 50,
right: 50,
top: '80%',
height: '10%'
}],
xAxis : [
{
type : 'category',
boundaryGap : false,
axisLine: {onZero: false},
data: timeData
},
{
gridIndex: 1,
type : 'category',
boundaryGap : false,
axisLine: {onZero: true},
data: timeData
},
{
gridIndex: 2,
type : 'category',
boundaryGap : false,
axisLine: {onZero: true},
data: timeData
}
],
yAxis : [
{
name : '单位净值走势',
type : 'value'
},
{
gridIndex: 1,
name : '当日收益(万元)',
min:-10,
max:10,
interval: 10,
type : 'value'
},
{
gridIndex: 2,
name : '仓位',
axisLabel: {
formatter: '{value}'
}
}
],
series : [
{
name:'组合收益值',
type:'line',
smooth:true,
symbol: 'none',
sampling: 'average',
data:[
1.4591,2.0901,1.6267,3.2614,3.5869,3.3773,4.0116,4.7881,5.814,6.0199,5.2808,5.676,5.6567,5.3418,5.3986,5.8933,5.7162,5.1046,5.3803,6.3346,3.3904,3.4147,3.2705,3.5264,3.755,3.6357,3.7173,3.8871,4.098,4.11,3.9735,4.0608,4.3233,4.3256,4.7883,4.9439,5.5177,5.123,3.4783,3.0091,3.3222,3.2061,2.7843,1.851,6.5402,4.9626,3.4169,8.8882,19.1416,20.5809,20.1443,24.72,27.454,29.3243,27.5068,28.6638,28.3862,27.7772,27.2667,26.6756,26.8001,27.2528,28.0071,27.7783,27.6822,28.259,27.1476,28.0304,29.5298,28.4995,29.6348,29.0957,28.2944,29.5366,28.9592,29.6523,31.3216,31.7925,31.0748,31.9741,29.9812,31.3519,30.3712,29.9924,32.6177,35.5663,42.7985,45.0866,43.1076,48.4268,51.8461,51.9356,55.1218,48.34,53.1457,56.9817,58.5204,59.2971,56.584,57.8162,57.1309,54.5186,54.2155,60.6562,62.3693,65.9454,68.9229,68.507,70.2622,70.1829,68.072,70.7424,70.1148,68.5244,71.0081,72.6043,72.0776,73.3607,74.9714,74.9686,72.064,72.8637,72.8625,73.7595,75.0452,74.0503,75.2471,73.6322,73.6275,73.8383,72.909,74.2714,75.1187,76.2767,79.4159,79.7231,81.4569,82.1585,81.5563,80.9526,81.7263,80.6913,81.3364,81.7202,81.3716,80.2001,79.9258,79.9771,79.83,79.8265,79.6964,79.5874,79.4628,79.4628,79.4628,79.4628,79.4668,79.4243,79.3652,79.3652,79.3652,79.3652,79.3652,79.3652,79.3652,78.3234,80.9102,81.7744,84.5495,83.436,82.5871,89.1811,92.1089,92.1405,92.4706,95.3481,95.0963,96.3525,91.0478,91.1335,87.7165,89.8439,96.648,97.5549,95.9449,98.1756,98.5087,96.5172,94.2491,93.7561,97.7529,97.356,96.4924,100.4914,104.8104,108.9884,108.4368,109.2423,107.4268,108.8778,108.3438,106.9479,110.7534,111.5598,112.045,114.4956,115.305,113.7774,113.1829,114.8999,114.8177,115.975,116.7577,117.1115,116.2935,116.7124,115.4831,115.4223,115.5458,115.5747,115.9805,115.9769,115.8915,115.7893,118.6637,119.455,120.1296,118.2438,117.0745,117.1429,117.392,117.5477,117.3938,117.7423,117.5841,117.39,117.5041,117.6414,117.9761,117.656,117.5931,117.8469,117.8718,117.4719,118.5797,118.9572,120.3277,120.6143,121.2231,121.5422,121.4832,118.8963,119.3822,120.5317,120.3615,120.8095,121.0942,120.2996,121.4667,121.1147,120.0922,121.9632,122.8576,123.2533,123.554,123.2367,125.8474,127.6295,127.6512,127.7082,127.4227,127.5104,129.6673,130.8331,130.9094,130.9919,131.4392,131.5382,131.8004,132.8329,132.2401,132.9816,134.446,132.4384,133.6353,133.0731,131.3142,132.3748,133.3741,133.5445,133.6391,135.3518,136.4403,135.7227,133.8837,135.9893,139.6235,140.3995,140.9613,141.4266,142.1043,141.0257,141.3094,141.4781,140.5407,140.8661,141.3388,141.436,141.5203,141.122,141.0921,141.7032,142.805,142.9691,143.2466,142.9509,141.6871,141.9372,141.6129,142.3488,142.3302,142.516,142.8539,142.6524,141.7805,142.3208,142.1346,142.284,142.6247,144.6449,145.7977,145.6758,145.9672,146.4692,145.5846,147.4394,147.4233,147.8111,148.0443,149.3999,149.5569,149.3824,149.0969,148.252,148.3956,149.4634,148.8904,149.9352,149.9759,149.9049,150.8143,149.6396,152.0164,153.1569,154.5163,155.1428,155.4104,155.4671,154.537,155.3812,156.8353,156.0681,156.1265,157.0525,157.737,157.5034,156.9749,158.1153,156.6526,156.1724,155.9552,156.8354,156.6248,157.1291,155.9064,156.52,156.6025,156.9624,156.6258,156.6865,156.2498,156.6737,156.9778,156.5161,156.4739,156.5162,156.3668,156.0856,155.9987,157.2329,158.4226,159.0092,158.9706,160.0025,159.5924,159.0057,158.5385,157.9731,157.6488,157.8331,158.2786,158.1889,158.9242,159.2928,159.3559,159.5261,159.6318,159.4355,160.592,160.9977,162.0056,163.7283,164.5076,164.8757,165.2497,164.4962,165.8578,164.9637,167.1895,167.7063,168.3413,167.7199,167.8074,166.7883,167.5938,167.755,167.0511,167.1323,168.3272,168.7999,168.5899,168.0858,167.9052,168.842,168.6232,169.03,169.6719,169.1967,169.994,170.4671,170.5292,170.8424,172.0315,171.954,172.0348,173.0468,172.2899,171.5176,174.0919,175.5265,176.5129,178.3424,181.9231,182.3584,183.7349,182.443,180.8528,180.5495,180.418,180.3377,179.5686,178.9335,179.4237,180.4092,180.3248,180.9425,182.385,182.5519,182.3459,181.3615,180.6696,180.7288,180.4338,180.6733,180.8434,181.2126,182.3061,182.2119,182.0071,181.9734,181.5262,181.129,181.4151,182.1047,182.015,182.2381,181.6986,182.0894,182.3338,182.3946,184.2372,184.4802,184.8231,183.6809,184.6823,184.0929,184.7724,184.5915,185.9151,185.7748,186.4443,185.1364,185.3699,186.7968,186.6841,186.2755,186.7377,186.7434,187.5553,187.1111,187.7312,187.7794,187.9139,187.3137,186.1454,185.8772,186.3891,186.3138,184.2075]
/*,areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: 'rgb(255, 158, 68)'
}, {
offset: 1,
color: 'rgb(255, 255, 255)'
}])
}
}*/
,
markArea: {
itemStyle:{
normal:{
color:'rgba(0,0,0,0)',
borderWidth:1,
borderColor:'#999',
borderType:'dashed'
}
},
label:{
normal:{
offset:[0,10]
/*color:'#666'*/
}
},
data: [
[
{
name: '2015年6月\n 20%',
xAxis:'2015-06-02',
itemStyle:{
normal: {
color:'rgba(255,255,255,0.2)',
borderWidth:0
}
}
},
{
xAxis:'2015-07-01'
}
],[
{
name: '2015年7月\n 50%',
xAxis:'2015-07-01',
itemStyle:{
normal: {
color:'rgba(167,175,186,0.1)'
}
}
},
{
xAxis:'2015-08-03'
}
],[
{
name: '2015年8月\n 40%',
xAxis:'2015-08-03',
itemStyle:{
normal: {
color:'rgba(255,255,255,0.2)',
borderWidth:0
}
}
},
{
xAxis:'2015-09-01'
}
],[
{
name: '2015年9月\n 70%',
xAxis:'2015-09-01',
itemStyle:{
normal: {
color:'rgba(167,175,186,0.1)'
}
}
},
{
xAxis:'2015-10-08'
}
]
]
/*data: [ [{
name: '2015年6月\n 20%',
xAxis: '2015-06-02',
}, {
xAxis: '2015-07-01'
}],
[{
name: '2015年7月\n 50%',
xAxis: '2015-07-01'
}, {
xAxis: '2015-07-31'
}]]*/
}
},
{
name:'平安',
/*type:'line',
symbolSize: 8,
hoverAnimation: false,*/
type:'line',
smooth:true,
symbol: 'none',
sampling: 'average',
data:[
15.77,15.83,16.37,16.3,17.29,16.98,16.68,16.48,16.51,15.92,15.64,15.73,15.38,14.63,14.95,15.12,14.87,13.77,13.56,14.54,13.92,13.75,13.07,13.88,14.65,13.19,14.26,14.86,14.44,13.87,13.58,13.6,13.82,13.6,13.57,13.52,13.67,13.38,12.44,12.62,12.6,12.26,12.36,12.82,12.86,12.59,12.53,12.61,12.92,12.84,12.57,12.57,12.64,12.54,12.27,12.23,12.05,11.5,10.35,9.46,9.91,10.8,10.83,11.07,11.57,11.84,10.89,11,11.1,11.05,10.96,10.87,10.57,10.9,10.77,10.81,10.82,10.96,10.7,10.71,10.55,10.53,10.38,10.49,10.7,10.9,11.23,11.13,10.98,11.17,11.23,11.26,11.32,11.22,11.33,11.47,11.52,11.48,11.27,11.27,11.36,11.14,11.05,11.69,12.07,12.39,12.94,12.75,12.55,12.4,12.24,12.34,12.5,12.42,12.5,12.55,12.45,12.28,12.32,12.23,11.73,11.74,11.75,12.51,12.45,12.12,12.15,11.96,11.99,11.96,11.83,12.07,11.92,11.89,12.07,12.23,12.51,12.43,12.48,12.34,12.41,11.98,12.09,12.1,11.99,11.33,11.4,11.53,10.94,11.12,10.76,10.81,10.71,10.77,10.46,10.41,10.71,10.54,10.32,10.4,10.37,9.87,9.88,9.69,10,9.8,9.95,9.85,9.95,9.92,9.79,10.01,10.15,10.09,10.04,10.29,10.12,10.15,9.67,9.79,9.56,9.7,10.1,10.11,10.4,10.34,10.28,10.17,10.15,10.16,10.26,10.32,10.35,10.42,10.54,10.8,10.72,10.7,10.52,10.59,10.48,10.43,10.7,10.64,10.66,10.7,10.72,10.59,10.57,10.72,10.67,10.81,10.84,10.88,10.73,10.77,10.52,10.51,10.55,10.5,10.59,10.57,10.66,10.57,10.68,10.72,10.72,10.52,10.35,10.28,10.37,10.38,10.35,10.36,10.3,10.3,10.25,10.3,10.28,10.21,10.23,10.22,10.27,10.28,10.55,10.48,10.46,10.5,10.51,10.52,10.5,10.33,10.4,10.44,8.57,8.58,8.6,8.61,8.73,8.66,8.57,8.61,8.63,8.69,8.7,8.71,8.81,8.81,8.79,8.78,8.74,8.75,8.88,8.99,8.94,8.99,9.04,8.97,8.96,8.99,8.94,8.98,9.11,9.01,9.08,9.2,9.28,9.25,9.18,8.99,9.04,9.11,9.15,9.14,9.22,9.5,9.68,9.52,9.55,9.5,9.51,9.4,9.4,9.43,9.44,9.45,9.42,9.47,9.49,9.45,9.45,9.42,9.41,9.4,9.4,9.38,9.16,9.19,9.06,9.12,9.08,9.08,9.16,9.15,9.04,9.06,9.05,9.06,9.07,9.12,9.15,9.13,9.07,9.09,9.05,9.09,9.08,9.07,9.13,9.24,9.21,9.15,9.16,9.17,9.15,9.14,9.07,9.13,9.11,9.12,9.15,9.07,9.14,9.18,9.22,9.23,9.23,9.21,9.18,9.24,9.36,9.45,9.47,9.62,9.63,9.62,9.55,9.6,9.55,9.46,9.49,9.48,9.52,9.65,9.5,9.42,9.4,9.25,9.25,9.2,9.11,9.16,9.14,9.08,9.12,9.08,9.06,9.08,9.1,9.16,9.16,9.17,9.13,9.15,9.15,9.14,9.15,9.16,9.14,9.15,9.17,9.18,9.22,9.22,9.27,9.26,9.33,9.26,9.31,9.3,9.3,9.31,9.33,9.41,9.4,9.45,9.46,9.39,9.56,9.57,9.57,9.51,9.5,9.43,9.48,9.49,9.43,9.4,9.45,9.45,9.42,9.38,9.4,9.44,9.44,9.48,9.52,9.31,9.25,9.24,9.16,9.2,9.19,9.14,9.12,9.11,9.08,9.17,9.21,9.2,9.2,9.18,9.15,9.12,9.12,9.08,9.1,9.05,8.91,8.92,8.97,8.93,9,8.99,8.97,8.99,8.94,8.91,8.74,8.63,8.57,8.64,8.67,8.7,8.9,8.86,8.84,8.77,8.73,8.69,8.68,8.79,8.81,9.1,9.1,9.2,9.19,9.17,9.03,9.04,9.13,9.13,9.15,9.11,9.12,9.08,9.04,9.02,9.13,9.12,9.15,9.25,9.25,9.3,9.36,9.43,9.43,9.39,9.4,9.34,9.37,9.4,9.47,9.59,10.25,10.34,10.9,10.9,10.81
]
},
{
name:'当日收益(上升)',
type:'bar',
xAxisIndex: 1,
yAxisIndex: 1,
symbolSize: 8,
hoverAnimation: false,
data: [
1.4591,0.631,0,1.6347,0.3255,0,0.6343,0.7765,1.0259,0.2059,0,0.3952,0,0,0.0568,0.4947,0,0,0.275700000000001,0.9543,0,0.0242999999999998,0,0.2559,0.2286,0,0.0815999999999999,0.1698,0.2109,0.0120000000000005,0,0.0873000000000004,0.262499999999999,0.00229999999999997,0.4627,0.155600000000001,0.573799999999999,0,0,0,0.3131,0,0,0,4.6892,0,0,5.4713,10.2534,1.4393,0,4.5757,2.734,1.8703,0,1.157,0,0,0,0,0.124500000000001,0.4527,0.754300000000001,0,0,0.576799999999999,0,0.8828,1.4994,0,1.1353,0,0,1.2422,0,0.693100000000001,1.6693,0.4709,0,0.8993,0,1.3707,0,0,2.6253,2.9486,7.2322,2.2881,0,5.3192,3.4193,0.089500000000001,3.1862,0,4.80569999999999,3.836,1.53870000000001,0.776699999999998,0,1.2322,0,0,0,6.4407,1.7131,3.5761,2.97749999999999,0,1.7552,0,0,2.6704,0,0,2.4837,1.5962,0,1.28309999999999,1.61070000000001,0,0,0.799700000000001,0,0.897000000000006,1.28569999999999,0,1.19680000000001,0,0,0.210800000000006,0,1.36239999999999,0.847300000000004,1.158,3.13919999999999,0.307200000000009,1.7338,0.701599999999999,0,0,0.773699999999991,0,0.645099999999999,0.383800000000008,0,0,0,0.0512999999999977,0,0,0,0,0,0,0,0,0.00400000000000489,0,0,0,0,0,0,0,0,0,2.5868,0.864199999999997,2.77509999999999,0,0,6.59399999999999,2.9278,0.0315999999999974,0.330100000000002,2.8775,0,1.25620000000001,0,0.0857000000000028,0,2.12740000000001,6.80409999999999,0.906900000000007,0,2.2307,0.333100000000002,0,0,0,3.99679999999999,0,0,3.999,4.319,4.178,0,0.805499999999995,0,1.45099999999999,0,0,3.8055,0.806399999999996,0.485200000000006,2.45059999999999,0.809400000000011,0,0,1.717,0,1.15729999999999,0.782700000000006,0.353800000000007,0,0.418900000000008,0,0,0.123499999999993,0.0289000000000073,0.405799999999999,0,0,0,2.87440000000001,0.791299999999993,0.674599999999998,0,0,0.0683999999999969,0.249099999999999,0.15570000000001,0,0.348500000000001,0,0,0.114099999999993,0.13730000000001,0.334699999999998,0,0,0.253799999999998,0.0248999999999882,0,1.1078,0.377499999999998,1.37049999999999,0.286600000000007,0.608800000000002,0.319099999999992,0,0,0.485900000000001,1.1495,0,0.447999999999993,0.284700000000001,0,1.1671,0,0,1.871,0.894400000000005,0.395699999999991,0.300700000000006,0,2.61069999999999,1.7821,0.0217000000000098,0.0570000000000022,0,0.0876999999999981,2.15690000000001,1.16579999999999,0.0763000000000034,0.0824999999999818,0.447300000000013,0.0989999999999895,0.262200000000007,1.0325,0,0.741499999999974,1.46440000000001,0,1.1969,0,0,1.06059999999999,0.999300000000005,0.170400000000001,0.094600000000014,1.71269999999998,1.08850000000001,0,0,2.10559999999998,3.63420000000002,0.775999999999982,0.561800000000005,0.465300000000013,0.677699999999987,0,0.28370000000001,0.168700000000001,0,0.325400000000002,0.472700000000003,0.0972000000000151,0.0842999999999847,0,0,0.611100000000022,1.1018,0.164099999999991,0.277500000000003,0,0,0.250100000000003,0,0.735900000000015,0,0.1858,0.337900000000019,0,0,0.540300000000002,0,0.149399999999986,0.340699999999998,2.02020000000002,1.15279999999998,0,0.291399999999982,0.50200000000001,0,1.85480000000001,0,0.387799999999999,0.233199999999982,1.35560000000001,0.157000000000011,0,0,0,0.143599999999992,1.06780000000001,0,1.04480000000001,0.0406999999999869,0,0.909400000000005,0,2.3768,1.1405,1.35939999999999,0.626499999999993,0.267600000000016,0.056699999999978,0,0.844200000000001,1.45409999999998,0,0.058400000000006,0.926000000000016,0.684499999999986,0,0,1.1404,0,0,0,0.880200000000002,0,0.504300000000001,0,0.613600000000019,0.0824999999999818,0.35990000000001,0,0.0606999999999971,0,0.423900000000003,0.304100000000005,0,0,0.0423000000000116,0,0,0,1.23419999999999,1.18969999999999,0.586600000000004,0,1.03190000000001,0,0,0,0,0,0.184300000000007,0.44550000000001,0,0.735300000000024,0.368599999999986,0.0630999999999915,0.170200000000023,0.105699999999985,0,1.15650000000002,0.405699999999996,1.00789999999998,1.7227,0.779300000000006,0.368099999999998,0.373999999999995,0,1.36160000000001,0,2.22580000000002,0.516799999999989,0.634999999999991,0,0.0875000000000057,0,0.805499999999995,0.161200000000008,0,0.0811999999999955,1.19490000000002,0.472700000000003,0,0,0,0.936800000000005,0,0.406800000000004,0.641899999999993,0,0.797300000000007,0.473099999999988,0.0621000000000151,0.313199999999995,1.1891,0,0.0807999999999822,1.012,0,0,2.57430000000002,1.43459999999999,0.986400000000003,1.8295,3.58070000000001,0.435299999999984,1.37650000000002,0,0,0,0,0,0,0,0.490199999999987,0.985500000000002,0,0.617699999999985,1.4425,0.166899999999998,0,0,0,0.0592000000000041,0,0.239500000000021,0.170099999999991,0.369200000000006,1.09349999999998,0,0,0,0,0,0.286100000000005,0.689600000000013,0,0.223100000000017,0,0.390800000000013,0.244399999999985,0.0608000000000004,1.8426,0.242999999999995,0.342900000000014,0,1.00139999999999,0,0.679500000000019,0,1.3236,0,0.669499999999999,0,0.233499999999992,1.42689999999999,0,0,0.462199999999996,0.00570000000001869,0.81189999999998,0,0.620100000000008,0.0482000000000085,0.134500000000003,0,0,0,0.511900000000026,0,0
]
},
{
name:'当日收益(下降)',
type:'bar',
xAxisIndex: 1,
yAxisIndex: 1,
symbolSize: 8,
hoverAnimation: false,
data: [
-0,-0,-0.4634,-0,-0,-0.2096,-0,-0,-0,-0,-0.7391,-0,-0.0193000000000003,-0.3149,-0,-0,-0.1771,-0.6116,-0,-0,-2.9442,-0,-0.1442,-0,-0,-0.1193,-0,-0,-0,-0,-0.1365,-0,-0,-0,-0,-0,-0,-0.394699999999999,-1.6447,-0.4692,-0,-0.1161,-0.4218,-0.9333,-0,-1.5776,-1.5457,-0,-0,-0,-0.436599999999999,-0,-0,-0,-1.8175,-0,-0.2776,-0.608999999999998,-0.5105,-0.591100000000001,-0,-0,-0,-0.2288,-0.0960999999999999,-0,-1.1114,-0,-0,-1.0303,-0,-0.539099999999998,-0.801300000000001,-0,-0.577400000000001,-0,-0,-0,-0.717700000000001,-0,-1.9929,-0,-0.980699999999999,-0.378800000000002,-0,-0,-0,-0,-1.979,-0,-0,-0,-0,-6.7818,-0,-0,-0,-0,-2.7131,-0,-0.685300000000005,-2.6123,-0.303100000000001,-0,-0,-0,-0,-0.415899999999993,-0,-0.0793000000000035,-2.1109,-0,-0.627600000000001,-1.5904,-0,-0,-0.526699999999991,-0,-0,-0.00280000000000769,-2.9046,-0,-0.0011999999999972,-0,-0,-0.994900000000001,-0,-1.61490000000001,-0.0046999999999997,-0,-0.929299999999998,-0,-0,-0,-0,-0,-0,-0,-0.602200000000011,-0.603699999999989,-0,-1.035,-0,-0,-0.348600000000005,-1.17149999999999,-0.274300000000011,-0,-0.147099999999995,-0.0035000000000025,-0.130099999999999,-0.108999999999995,-0.124600000000001,-0,-0,-0,-0,-0.042500000000004,-0.0591000000000008,-0,-0,-0,-0,-0,-0,-1.04179999999999,-0,-0,-0,-1.11349999999999,-0.8489,-0,-0,-0,-0,-0,-0.251800000000003,-0,-5.30470000000001,-0,-3.417,-0,-0,-0,-1.61,-0,-0,-1.9915,-2.2681,-0.492999999999995,-0,-0.396900000000002,-0.863599999999991,-0,-0,-0,-0.551599999999993,-0,-1.8155,-0,-0.533999999999992,-1.3959,-0,-0,-0,-0,-0,-1.52760000000001,-0.594499999999996,-0,-0.0822000000000003,-0,-0,-0,-0.818000000000012,-0,-1.22930000000001,-0.0607999999999862,-0,-0,-0,-0.00360000000000582,-0.085400000000007,-0.102199999999996,-0,-0,-0,-1.8858,-1.16929999999999,-0,-0,-0,-0.153900000000007,-0,-0.158199999999994,-0.194100000000006,-0,-0,-0,-0.320099999999996,-0.0628999999999991,-0,-0,-0.399899999999988,-0,-0,-0,-0,-0,-0,-0.0589999999999975,-2.5869,-0,-0,-0.170199999999994,-0,-0,-0.794600000000003,-0,-0.352000000000004,-1.02249999999999,-0,-0,-0,-0,-0.317300000000003,-0,-0,-0,-0,-0.285499999999999,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0.592799999999983,-0,-0,-2.0076,-0,-0.56219999999999,-1.75890000000001,-0,-0,-0,-0,-0,-0,-0.717600000000004,-1.839,-0,-0,-0,-0,-0,-0,-1.07859999999999,-0,-0,-0.937400000000025,-0,-0,-0,-0,-0.398299999999978,-0.0299000000000262,-0,-0,-0,-0,-0.295700000000011,-1.2638,-0,-0.324299999999994,-0,-0.0186000000000206,-0,-0,-0.20150000000001,-0.871900000000011,-0,-0.186199999999985,-0,-0,-0,-0,-0.121899999999982,-0,-0,-0.884600000000006,-0,-0.0160999999999945,-0,-0,-0,-0,-0.174500000000023,-0.285499999999985,-0.844899999999996,-0,-0,-0.573000000000008,-0,-0,-0.070999999999998,-0,-1.1747,-0,-0,-0,-0,-0,-0,-0.930099999999982,-0,-0,-0.767200000000003,-0,-0,-0,-0.233599999999996,-0.528500000000008,-0,-1.46269999999998,-0.480199999999996,-0.21720000000002,-0,-0.210599999999999,-0,-1.2227,-0,-0,-0,-0.336600000000004,-0,-0.436700000000002,-0,-0,-0.461700000000008,-0.0422000000000082,-0,-0.149399999999986,-0.281200000000013,-0.0868999999999858,-0,-0,-0,-0.0386000000000024,-0,-0.4101,-0.586700000000008,-0.467199999999991,-0.565400000000011,-0.324299999999994,-0,-0,-0.0897000000000219,-0,-0,-0,-0,-0,-0.196300000000008,-0,-0,-0,-0,-0,-0,-0,-0.753500000000003,-0,-0.894100000000009,-0,-0,-0,-0.621399999999994,-0,-1.01910000000001,-0,-0,-0.703900000000004,-0,-0,-0,-0.210000000000008,-0.504099999999994,-0.180599999999998,-0,-0.218800000000016,-0,-0,-0.475200000000001,-0,-0,-0,-0,-0,-0.0774999999999864,-0,-0,-0.756900000000002,-0.772300000000001,-0,-0,-0,-0,-0,-0,-0,-1.2919,-1.59020000000001,-0.303300000000007,-0.131499999999988,-0.080299999999994,-0.769100000000009,-0.635099999999994,-0,-0,-0.084399999999988,-0,-0,-0,-0.205999999999989,-0.984399999999994,-0.691900000000004,-0,-0.295000000000016,-0,-0,-0,-0,-0.0941999999999723,-0.204800000000006,-0.0337000000000103,-0.447200000000009,-0.397199999999998,-0,-0,-0.0897000000000219,-0,-0.539500000000004,-0,-0,-0,-0,-0,-0,-1.1422,-0,-0.589400000000012,-0,-0.180900000000008,-0,-0.140299999999996,-0,-1.30789999999999,-0,-0,-0.11269999999999,-0.408600000000007,-0,-0,-0,-0.444199999999995,-0,-0,-0,-0.600200000000001,-1.16830000000002,-0.268200000000007,-0,-0.075300000000027,-2.10629999999998
]
}
,
{
name:'仓位',
type:'line',
xAxisIndex: 2,
yAxisIndex: 2,
symbolSize: 8,
hoverAnimation: false,
data: [
45,75,80,69,73,58,53,46,32,21,16,9,8,10,13,8,11,7,8,15,43,4,3,3,3,3,3,7,6,8,5,3,6,10,11,14,18,23,18,6,10,13,10,107,133,147,141,153,152,142,135,119,85,52,24,21,9,8,5,3,3,5,9,11,26,25,27,36,42,39,33,18,16,17,32,32,47,54,53,57,63,49,45,43,122,131,139,135,134,138,125,108,100,95,92,93,89,86,85,77,88,105,109,125,129,130,125,114,94,85,84,81,78,79,79,80,80,73,69,56,45,43,73,79,78,85,84,75,67,68,77,80,95,97,105,106,96,91,80,76,69,53,47,36,29,23,0,2,2,2,3,2,1,0,0,0,1,1,0,0,0,0,0,0,0,84,104,115,127,126,130,146,142,138,133,98,69,62,58,58,54,104,111,106,106,106,98,95,105,113,121,123,122,127,132,125,117,111,98,95,89,93,97,90,83,94,87,82,80,74,70,78,79,70,62,49,46,26,25,20,21,29,30,31,103,99,89,60,39,20,17,14,14,15,13,13,13,15,20,21,20,22,25,26,39,110,99,94,83,71,63,58,25,36,49,55,60,61,64,66,72,65,88,85,100,131,129,133,133,138,135,126,115,118,115,110,103,104,103,104,103,100,95,91,93,92,107,98,109,118,120,124,126,135,139,139,150,151,138,127,111,95,97,95,91,87,86,78,74,86,83,77,75,79,76,66,62,43,38,44,46,41,44,45,44,46,46,53,52,124,113,117,112,109,110,111,110,110,105,98,97,94,91,90,93,111,116,127,133,128,125,126,124,129,133,133,134,122,119,113,114,116,116,113,102,99,97,107,105,85,71,66,65,58,59,32,29,27,26,28,30,31,34,33,32,28,27,28,31,116,119,114,106,96,82,74,70,62,54,37,39,43,53,69,81,84,83,118,133,131,125,128,125,131,127,121,117,118,119,116,110,106,100,90,92,89,86,89,83,84,85,84,72,70,71,76,78,79,80,78,83,78,80,85,85,90,93,76,124,129,126,121,117,101,93,74,71,59,58,54,48,45,46,51,56,56,96,94,84,73,59,37,40,39,39,46,58,65,57,60,59,53,45,49,47,44,73,70,83,91,101,103,103,101,102,106,102,100,102,104,99,95,90,85,89,92,92,93,114,107,107,115,112,104,96,81,66,67,65
],
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: 'rgb(156, 199, 241)'
}, {
offset: 1,
color: 'rgb(251, 253, 255)'
}])
}
}
}
]
}, true);

```

### Other comments [其他信息]

![image](https://user-images.githubusercontent.com/20217641/32312823-bdb670a6-bfda-11e7-9c7a-a18aecd7078f.png)

Contributor guide

Open the contributing guide

Research direction

Start by running the supplied ECharts option in Chrome with ECharts v3.7.2 and use dataZoom to reproduce the markArea label overlap. Compare markArea.data.name labels as regions move outside the visible range; done means labels follow their markArea visibility and no longer overlap.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.