#209 New combined domain and range plots

open
None
6
2008-03-28
2008-03-24
No

Taken from forum post "Combine Chart in jfreechart" (http://www.jfree.org/phpBB2/viewtopic.php?t=24168). The forum post contains a quick discussion about the setRangeAxis calls redrawing the plot on each iteration through the subplots. The post describes a couple possible solutions as well which you can do with as you see fit, but it would be prudent to only have the plot redrawn once.

Discussion

  • Richard West

    Richard West - 2008-03-24

    Logged In: YES
    user_id=1788593
    Originator: YES

    File Added: CombinedXYPlot.java

     
  • Richard West

    Richard West - 2008-03-24
    • assigned_to: nobody --> mungady
     
  • Richard West

    Richard West - 2008-03-26

    Logged In: YES
    user_id=1788593
    Originator: YES

    Updating CombinedXYPlot.java. The file makes reference to bug 1926517 (https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1926517&group_id=15494). Once the bug is resolved, I will update to the final version.
    File Added: CombinedXYPlot.java

     
  • Richard West

    Richard West - 2008-03-26

    Logged In: YES
    user_id=1788593
    Originator: YES

    Updating CombinedCategoryPlot.java. The file makes reference to bug 1926517 (https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1926517&group_id=15494). Once the bug is resolved, I will update to the final version.
    File Added: CombinedCategoryPlot.java

     
  • David Gilbert

    David Gilbert - 2008-03-28
    • priority: 5 --> 6
     
  • Richard West

    Richard West - 2008-03-28

    Logged In: YES
    user_id=1788593
    Originator: YES

    Dave,
    Your understanding is correct. Each subplot in the CombinedXXXPlot shares a common domain and a common range. Since the classes extend the CombinedDomainXXXPlot classes, the resulting plot looks similar to the CombinedDomainXXXPlot, but the range axes have the same scale/range and will zoom in unison. We could provide a similar extension to CombinedRangeXXXPlot that would allow the subplots to be side-by-side, but I am not sure if that is necessary. We could always ask the forum for their input. From an implementation point-of-view, extending CombinedRangeCategoryPlot would not be as simple since we would have to assure the same domain for both datasets. I have implemented my own dataset classes which accomodate this for me (probably too proprietary and user-specific to benefit the community at large), but we cannot assure both datasets have the same categories. This assurance is not true for the CombinedDomainCategoryPlot either, and you get some interesting effects.

    I plan to provide a final version of these classes once we have resolved my last comment in bug 1926517 (https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1926517&group_id=15494) regarding the getSubplots NullPointerException. The new version are more efficient than those you tested. Hopefully, people will find use for them since there has been discussions on the forum about this kind of plot.

     
  • Richard West

    Richard West - 2008-03-31

    final CombinedCategoryPlot.java for 1.0.10

     
  • Richard West

    Richard West - 2008-03-31

    Logged In: YES
    user_id=1788593
    Originator: YES

    Final version of CombinedCategoryPlot for v1.0.10.
    File Added: CombinedCategoryPlot.java

     
  • Richard West

    Richard West - 2008-03-31

    final CombinedXYPlot.java for 1.0.10

     
  • Richard West

    Richard West - 2008-03-31

    Logged In: YES
    user_id=1788593
    Originator: YES

    Final version of CombinedXYPlot for v1.0.10.
    File Added: CombinedXYPlot.java

     
  • Richard West

    Richard West - 2008-06-02

    Logged In: YES
    user_id=1788593
    Originator: YES

    David, are you planning to include this in 1.0.10? I know you have a lot on your plate for 1.0.10, but we have had several requests for this in the forum. Feel free to rename the class as you see fit.

     
  • David Gilbert

    David Gilbert - 2008-06-05

    Logged In: YES
    user_id=112975
    Originator: NO

    Hi Richard,

    I put them in the 'experimental' tree for 1.0.10. That will give me a little longer to think about the names, plus a chance for people to give the classes some real world testing before committing them to the core.

    Note that JFreeChart 1.0.11 won't take as long to get out as JFreeChart 1.0.10 is taking...most of the disruptions that are keeping me busy on other things are behind me now, at least I hope so!

    Regards,

    Dave

    Regards,

    Dave

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks