How to format label of markline. Here is my code
markLine: {
symbol: ['none', 'none'],
data: [
{
name: 'current value',
yAxis: this.dataCandle.values[this.
dataCandle.values.length - 1][1]
}
],
label: {
position: "end",
backgroundColor: "#6e7079",
color: "white",
padding: [4, 8, 4, 8],
borderRadius: 3,
formatter: function (value) {
return '{c}'
}
},
lineStyle: {
color: "#ccc"
},
silent: true
}
i use: formatter: function (value) {
return '{c}'
}
or formatter: function (value) {
return libs.format(value)
}
not work.
And how to format label of axispointer on the yAsix when mouseover the
cande of candlestick. It's dependent on label of yAsix. Example I want to
label on yAxis of axispointer has color red and background: blue, and label
of main value in yAxis is yellow. Thanks
