You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Max Graze <ma...@king.com> on 2023/03/28 09:12:01 UTC

markline formatter

Hello,

I have been trying to use the markline to create a context line for my chart. I would like to have a label to display the value, but I can’t get itto format. I would appreciate any help or advice:
https://codepen.io/maxeneg/pen/NWLJLGW



[A close up of a logo  Description automatically generated]
Max Graze
Sr. Data Visualization Engineer
maxene.graze@king.com<ma...@king.com>
[A picture containing object, clock  Description automatically generated]<https://www.linkedin.com/company/king/>[signature_1959067270]<https://www.facebook.com/King/>[A close up of a logo  Description automatically generated]<https://www.instagram.com/lifeatking/>[A close up of a logo  Description automatically generated]<https://twitter.com/king_games>





Re: markline formatter

Posted by Zhongxiang Wang <wa...@apache.org>.
Hi Max,

There is a deprecated usage on the `label.normal` option and it's the cause
of your issue. It would work if you removed it.
And the callback parameter `value` is an object, in which you can get the
value / name or other information. Please refer to the following demo.

[1]
https://echarts.apache.org/examples/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MrtpAC2jBwA1gAyvd7uCeh45IMARsD-dNAw_XEeQmAiMVsJM7Me0IyD3rQmu9BCHAKwk328B7POuNENA8ew_oyLVKt4t8EgAzTjDMAsDhEEGWeiQGCwAAUIBGZwAlEDgQkOFQwAoOHAAAYAEiQqI4ZwAdKdznYADrQMkU6l-QJUOwAUiJAG4XscHPzZiBgHgIAjoHQqDdntiPAB6eVhbTABT-e7_WC4wbAHwaIUJRWwdYcYaAo5yo1zFUAdyIYA4SgNCqVdmdsEFcp-Uyu5H803d6E6FzwKwgmi-wPoK04dAAxIwqInE8EvW7senjrZZpn0JnbHYeUA

On Wed, Mar 29, 2023 at 1:27 AM Max Graze <ma...@king.com> wrote:

> Hello,
>
>
>
> I have been trying to use the markline to create a context line for my
> chart. I would like to have a label to display the value, but I can’t get
> itto format. I would appreciate any help or advice:
>
> https://codepen.io/maxeneg/pen/NWLJLGW
>
>
>
>
>
>
>
> [image: A close up of a logo Description automatically generated]
>
> Max Graze
>
> Sr. Data Visualization Engineer
>
> *maxene.graze@king.com <ma...@king.com>*
>
> [image: A picture containing object, clock Description automatically
> generated] <https://www.linkedin.com/company/king/>[image:
> signature_1959067270] <https://www.facebook.com/King/>[image: A close up
> of a logo Description automatically generated]
> <https://www.instagram.com/lifeatking/>[image: A close up of a logo
> Description automatically generated] <https://twitter.com/king_games>
>
>
>
>
>
>
>
>
>