problem description
indicates that the text label on the line can be set to different sizes and colors, and the style is invalid through rich text
related codes
xAxis: {
show: true,
position: "top",
data: _this.series.dateList,
axisPointer: {
show: true,
type: "line",
padding: [10, 0],
label: {
color: "-sharp2b3038",
fontSize: 14,
backgroundColor: "-sharpfff",
shadowColor: "-sharpfff",
formatter: function (params) {
return (
"{value|" + params.seriesData[0].value.toFixed(4) + "}" + "\n" + "{time|" + params.value + "}"
)
},
rich: {
value: {
fontSize: 16
},
time: {
fontSize: 12
}
}
},
lineStyle: {
color: "-sharpCBD0D6",
type: "dotted",
height: "243px"
}
}
}
what result do you expect? What is the error message actually seen?
places