FVANCOP / ChartNew.js

MIT License
420 stars 142 forks source link

Annotate display issue on bar chart #358

Closed leesuit closed 9 years ago

leesuit commented 9 years ago

I have a problem with displaying annotate on really small bars. Odd thing is that I can display them on zeroed bars but on small ones not. I attached sample picture. Blue and yellow ones working fine but red one no. Any clues? pointHitDetectionRadius option is for line and radar charts only. annotateissue

FVANCOP commented 9 years ago

Can you send your code to my email address ? I will check what happens!

Thanks, Francois

FVANCOP commented 9 years ago

Thanks for the code. I could resolve it by adding a new option : annotateBarMinimumDetectionHeight. Default value is 0 and behavior will be the same as what you have now. Set it to 10 and you will have no problem to display annotations on zero values.

see : https://github.com/FVANCOP/ChartNew.js/wiki/100_020_Annotations#annotatebarminimumdetectionheight

leesuit commented 9 years ago

Perfect! Thanks!