Highcharts spline dataLabels overlapping

前端 未结 2 1016
小蘑菇
小蘑菇 2020-12-02 02:53

I have a question about highchart\'s overlapping data labels. I have 2 spline data series and as you can see here http://jsfiddle.net/3E8V4/ some data labels are overlapping

相关标签:
2条回答
  • 2020-12-02 03:29

    Sobis,

    I don't have a answer that is exactly what you are expecting.

    In this case what i would do is increase the max of yAxis by 10% of the maxi m of the data. provide zoom in/out. that will enable the user to get a values on top of the points

    zoomType: 'xy'
    

    here is an example http://jsfiddle.net/3E8V4/1/

    hope you will find it useful

    0 讨论(0)
  • 2020-12-02 03:36

    You can use that plugin for repositioning dataLabels: http://jsfiddle.net/menXU/1/ It's not perfect, since works only for max 2 series and requires disabled animations, or you will see little delay when repositioning dataLabels.

    How to use? Copy StaggerDataLabels and isLabelOnLabel functions, and then use StaggerDataLabels in load and redraw events for chart.

    0 讨论(0)
提交回复
热议问题