Menu

#155 PolarChart: Setting labels/ticks

closed
None
5
2008-02-17
2007-03-16
No

I have added 5 methods to the org.free.chart.plot.PolarPlot.java in order to set angle labels and ticks on polar charts.

Discussion

  • Claus E. Petersen

    Copy-paste of added content to PolarChart.java

     
  • David Gilbert

    David Gilbert - 2007-03-16

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks for the patch. I think the idea is good, but the implementation needs some additional work:

    (1) Any change to the state of the PolarPlot should fire a PlotChangeEvent -- this ensures that the plot is redrawn automatically as necessary;

    (2) Related to (1), it probably makes sense to make a copy of the list passed into setAngleTicks() -- so that the caller doesn't by-pass the change event mechanism by directly modifying the list that is now under the control of the PolarPlot;

    (3) The PolarPlot equals() implementation will need to be updated to check the angleTicks, as will the clone() method.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     
  • David Gilbert

    David Gilbert - 2008-02-17

    Logged In: YES
    user_id=112975
    Originator: NO

    I committed a different patch to Subversion that performs a similar function:

    https://sourceforge.net/tracker/index.php?func=detail&aid=1871902&group_id=15494&atid=315494

    ...so I'll close this one. Thanks for your efforts all the same.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     
  • David Gilbert

    David Gilbert - 2008-02-17
    • assigned_to: nobody --> mungady
    • status: open --> closed
     

Log in to post a comment.