Domain Gridlines

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rkhlin
Posts: 10
Joined: Tue Apr 06, 2004 1:12 am

Domain Gridlines

Post by rkhlin » Thu May 20, 2004 3:23 am

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?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 20, 2004 2:30 pm

No. It would be a nice extension though...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

iogan18tm
Posts: 24
Joined: Tue May 04, 2004 5:14 pm

Axis property

Post by iogan18tm » Thu May 20, 2004 7:45 pm

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.

Locked