Please help!
Is there a way we can dictate where to draw the domain gridlines?
For example, in a vertical bar chart. Every 3 bars or number of bars then we draw 1 vertical gridline? Possible?
Domain Gridlines
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
No. It would be a nice extension though...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Axis property
Maybe it should Axis property an bit array the pattern. Where 0 - dont draw, 1 - draw Domain Gridline. Alas, this implementation brings down another enchantment - drawing Domain Gridlines in middle gaps between Categories and on sides. I can sense it should be separate object - somewhat like Gridline which holds data (points) for Axis where to draw Gridline. It recieves changes from Dataset, Axis. And it has common methods like building gridline from CategoryDataset, from NumberDataset. Also it contains default Gridlines for chart type and patterns to filter gridline positions, custom lines ( somewhen i thought of using attractor-repulser theory to calculate positions - but its very complicated for such a simple task).
I'll try to do it, but my java knowledge is far too small for this.
I'll try to do it, but my java knowledge is far too small for this.