iwbnwif / wxFreeChart

This is a clone (not fork) of the pbfordev/wxFreeChart repository. It has their original fixes to the the wxCode version.
Other
37 stars 22 forks source link

New automatic / nice interval scaling causes multiple axis differences #26

Closed iwbnwif closed 7 years ago

iwbnwif commented 7 years ago

Since introducing the new nice interval scaling algorithm, graphs with multiple axis can have different label counts for each axis.

This looks weird because the gridlines to not align.

iwbnwif commented 7 years ago

This is not actually a bug.

The problem is that the axis major and minor ticks will never line up if there are different label counts, and it is right in many circumstances that they do have different label counts.

It might be possible to implement an algorithm where by all axis have the same label count and still auto scale, but it probably isn't worthwhile.

The solution for now is to implement disabling of gridline drawing for secondary axis (see #36 ).

Closing this issue for now.