danibert1 Posted January 24, 2014 Report Share Posted January 24, 2014 Hi all, I Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted January 28, 2014 Report Share Posted January 28, 2014 I tried your code in 3 different browsers and got the expected result (only 1 gridline) in all of them, the only thing strange (but bening) in your code is that customGridLines.add does not return anything so instead of var customGridLines = chart1.getAxisY().getCustomGridLines().add(customGrid); I would write chart1.getAxisY().getCustomGridLines().add(customGrid); Can you post a link to an image showing how it looks in your case? Have you tried different browsers? JuanC Quote Link to comment Share on other sites More sharing options...
0 danibert1 Posted February 1, 2014 Author Report Share Posted February 1, 2014 Thank you very much. With chart1.getAxisY().getCustomGridLines().add(customGrid); it works now. errors.zip Quote Link to comment Share on other sites More sharing options...
0 LunkwillAndFook Posted February 12, 2014 Report Share Posted February 12, 2014 I was able to reproduce this. The issue I had is with animation when no data value is zero along the Y axis. If animation is turned on the custom grid line draws incorrectly (despite setting scale and attempting other workarounds). The way to get around this is to render the grid completely and create it, then afterwards do a setTimeout with a delay of 1000 which sets the gridline. The gridline will then render correctly. Quote Link to comment Share on other sites More sharing options...
Question
danibert1
Hi all,
I
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.