Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Category axis with breaks is rendered incorrectly #6370
In a category axis, ticks and gridLines are supposed to be placed between tick labels, and not at them. They are at least not supposed to be drawn outside the plotArea.
Some ticks and gridLines are drawn outside the plotArea when defined in a category axis.
Additionally (and this may very well be another issue, but at least highly related), note that the tick labels which are not affected by the breaks are placed correctly between ticks (
Live demo with steps to reproduce
In the fiddle you can se that commit 4f617c3 caused the gridLines and ticks to be rendered incorrectly, but note that the issue with category label positioning still resides in commits before that.
Update: It seems the problem has always been there with category axes. The only reason it became so apparent after commit 4f617c3, is because the commit removed the
Same example on an X-axis: http://jsfiddle.net/larsac07/8vdvyjdr/2/