echarts [Feature] Multiple Markpoint in bar chart for each bar/column

gz5pxeao  于 5个月前  发布在  Echarts
关注(0)|答案(5)|浏览(94)

What problem does this feature solve?

I can add markpoint based on max, min, avg points. But if I want to put value on top of each bar. If I am already using label in axisTick properties to show some values in the x-axis. So, I cannot use the label properties. In that case markpoint can be used for each bar value represent. It will be easy for use to understand the values on chart. As example attached mockup below.

What does the proposed API look like?

markPoint: {
data: [
{
value: 2,
label: "Jan"
},
{
value: 4.9,
label: "Feb"
},
{
value: 7,
label: "Mar"
},
...........
]
}

1hdlvixo

1hdlvixo2#

I am using label already with series to use legend. So, not able to use label again and looking form markpoint if I can use to show the numbers on top. If label use is possible with the other label and legend, can you please help me on this.

Here is the sample code of label and legend I am using - Demo Code

pwuypxnk

pwuypxnk3#

Why not use label? Demo Code

#18708 (comment)

oxiaedzo

oxiaedzo4#

You can use visualMap instead of legend - Demo Code .

6kkfgxo0

6kkfgxo05#

You can use visualMap instead of legend - Demo Code .

Okay, I will try out this solution. Thanks for the suggestion.

相关问题