How to access legendSymbols and change their shape in HighCharts

前端 未结 3 735
无人及你
无人及你 2020-12-20 06:04

I have a line chart with markers disabled. The legendSymbol is currently a line. I would like to show the symbol as a square. Any pointers?

3条回答
  •  情书的邮戳
    2020-12-20 06:35

    You can use two series (one normal and one fake) with defined custom symbol. First should be hidden in legend. Then only what you need is use legendItemClick and call action.

    http://jsfiddle.net/5m9JW/339/

提交回复
热议问题