Menu

#17 Number axis labels disappearing

open
nobody
None
5
2014-07-11
2005-12-03
No

I wanted to use Chart2D for a project as it looks
really good but I ran into a showstopper problem:
The number axis labels are randomly disappearing (see
screenshot). It seems to depend on the data values
and the chart size. Sometimes the labels are
disappearing when I enlarge the chart, sometimes when
I downsize it.
Is there a way to enforce painting the number axis
labels? I would really need it.

Discussion

  • Ronny Standtke

    Ronny Standtke - 2005-12-03

    Chart without number axis labels

     
  • Giovanni

    Giovanni - 2014-07-11

    I have encountered the same problem placing the Chart inside a JPanel ruled with MigLayout. I have solved putting the Graph inside a sub-Jpanel with no layout manager

    MyPnl = new JPanel(null);

    MyPnl.add(MyLBChart2D);

    and then setting directly bounds of chart

    MyLBChart2D.setBounds(x, y, w, h);

     

Log in to post a comment.