Menu

Why are chart label auto hiding when it reaches a certain size?

2013-08-14
2013-08-14
  • Gustavo Matias

    Gustavo Matias - 2013-08-14

    Can anyone explain to me why this is happening? http://oi41.tinypic.com/ekrszb.jpg

    I'm pretty sure I didn't set any properties or logic that would do that. it's just settings its visibility to "hidden" for some reason.

    Thanks!

     
  • Cory Skowronek

    Cory Skowronek - 2013-08-14

    Hi Gustavo,

    Without looking at your code, it seems that your problem may be related to an issue with Highcharts itself where data labels outside the plot area were being hidden. It looks like the far right group of columns are properly displaying their labels, which makes me think this is the case.

    Which version of Highcharts are you using? I believe this issue was fixed in the 3.0.2 release. Here are a few links to Highcharts tickets which pertain to this:

    https://github.com/highslide-software/highcharts.com/issues/1060
    https://github.com/highslide-software/highcharts.com/issues/1788

     
  • Gustavo Matias

    Gustavo Matias - 2013-08-14

    Hi! thanks for the response. I checked the version of my highcharts.js and it's actually 3.0.4. is the bug back? or did I miss anything?

     
  • Gustavo Matias

    Gustavo Matias - 2013-08-14

    ohh and actually, if you look at the code in that screenshot very closely it says "Created with Highcharts 3.0.4"

     
  • Gustavo Matias

    Gustavo Matias - 2013-08-14

    thanks for the links though. I'm using the workaround one of the guys suggested: chart.getYAxis().setEndOnTick(false).setMin(0).setMax(110);

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.