problem description
MarkPoint annotation is used in echarts. After configuring coord, the label in the annotation is not displayed, but write {type:"min", name: "minimum"}, which can show
.the environmental background of the problems and what methods you have tried
encountered this problem when working on a project. Tried in different axes, category axes, non-category axes. That is, after configuring coord to determine the coordinates, the text in the annotation will not be displayed.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
my configuration item code.
option = {
xAxis: {
type: "category",
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
},
yAxis: {
type: "value"
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: "line",
smooth: true,
markPoint: {
symbol: "pin",
data: [
{coord: ["Mon", "822"], name: ""},
// {type: "min", name: ""}
]
}
}]
};
what result do you expect? What is the error message actually seen?
I hope the boss can solve this problem, wait online, hurry! I didn"t report it wrong. It"s just that the contents of the tag are not displayed.
{coord: ["Mon", "822"], name: ""}
this is when configuring {type: "min", name:" maximum"}, the text is displayed.