#31 Support for discontinuous graphs

open
General (246)
5
2001-10-22
2001-10-09
No

Requirement:
Need support for discontinuous graphs.

I've modified some code for both XYPlots and LinePlots
to support passing in NULL values where values do NOT
exist.

Code modified:

XYPlot.java
LinePlot.java
DataSources.java

Attached in diff.jar

XYPlot.java.diff
LinePlot.java.diff
DataSources.java.diff
throughput_minutely.jpg (sample graph)

tom f.
tfortune@flatrock.com

Discussion

  • thomas fortune

    thomas fortune - 2001-10-09

    diff files and sample graph

     
  • David Gilbert

    David Gilbert - 2001-10-22
    • assigned_to: nobody --> mungady
     
  • David Gilbert

    David Gilbert - 2001-10-22

    Logged In: YES
    user_id=112975

    Thanks Tom,

    I've been meaning to give some thought to what might go
    wrong in JFreeChart if null values are allowed, because it
    is a useful feature.

    I'll keep you posted once I find time to look at it...

    Regards,

    DG.

     
  • Christian Wege

    Christian Wege - 2003-06-03

    Logged In: YES
    user_id=135054

    Wouldn't it be nice to allow NaN values in addition to null?
    Now I have to write:
    if (Double.isNaN(line[i])) {
    series.add(i, null);
    } else {
    series.add(i, line[i]);
    }

    However I would like to write:
    series.add(i, line[i]);

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks