I am using Dojo and Highcharts, the X axis is not alligned when I use:
....xAxis[0].setCategories(...)
In the fiddle, if you comment the first setCategories and you discomment the second one, the X axis is allign, but the chart no. And if you discomment the both of them, you have the both problems.
How can I solve this problem? Thanks in advance.
I found this solution too (replace the dojo adapter). I replaced this:
for this:
and now goes correctly without doing this:
See --> http://www.highcharts.com/component/content/article/2-news/58-highcharts-standalone-framework
I'm not sure why the problem is occurring, but you can fix it by forcing the x-axis offset like this:
http://jsfiddle.net/SSmtN/
I don't think that you should have to do this. Maybe it's a problem related to using dojo ?