You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PeriodAxis.setVisible(false) will not hide the axis, but reduces axis space.
This can be shown in the Demo Example by
/* --------------------
PeriodAxisDemo1.java
(C) Copyright 2004-2011, by Object Refinery Limited.
*/
Adding a block of code from DateAxis.draw() Method would solve this.
{code}
@Override
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea,
Rectangle2D dataArea, RectangleEdge edge,
PlotRenderingInfo plotState) {
// copied from DateAxis ...
// if the axis is not visible, don't draw it...
if (!isVisible()) {
AxisState state = new AxisState(cursor);
// even though the axis is not visible, we need to refresh ticks in
// case the grid is being drawn...
List ticks = refreshTicks(g2, state, dataArea, edge);
state.setTicks(ticks);
return state;
}
{code}
The text was updated successfully, but these errors were encountered:
PeriodAxis.setVisible(false) will not hide the axis, but reduces axis space.
This can be shown in the Demo Example by
/* --------------------
*/
Adding a block of code from DateAxis.draw() Method would solve this.
{code}
{code}
The text was updated successfully, but these errors were encountered: