Sometimes needed when you do echarts chart markLine, but the data is passed to the interface, you need to have this parameter according to whether the interface to determine whether to render markLine.
If you are rendering different data on the same table, but there are parameters on an interface need to use other parameters markLine markLine no need to use the interface, then the last rendered the markLine will be hidden.
Tell me what network api time, tried facility label: {false}, but not useful (perhaps my position does not ??), online search, the only method markLine added, does not hide or delete markLine methods.
Finally, or was I developed a method directly on the code:
Add markLine:
markLine: {
Data: [{
YAXIS: '30', // value
the lineStyle: {
Normal: {
Color: 'Red', // Colors
type: 'solid' // line style
}
}
}]
}
final effect:
Hide markLine:
mark line: {
data: [{
yAxis: '', // empty value, after cleared to 0 by default, do not know echarts setting
of the lineStyle: {
Normal: {
Color: 'White', set the background color is white, because my background color is white
opacity: 0 , transparency is set to 0 // lines
}
}
}]
}
final effect: