Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#44 Regression Charts

open
None
5
2004-05-31
2004-05-18
Zorkerman
No

Have you considered adding regression charting? This
would need the options of showing a linear regression
line, as well as optionally showing the points that
make up the line.

I imagine that if you got really energetic you could
use some exponential regression stuff.

This would pretty much facilitate me throwing kavachart
away.

Discussion

    • assigned_to: nobody --> nathaniel_auvil
     
  • Logged In: YES
    user_id=118938

    I am not sure off the top of my head what a regression chart
    is. Can you point me at some examples?

     
  • Zorkerman
    Zorkerman
    2004-05-31

    RegressionChart.java

     
    Attachments
  • Zorkerman
    Zorkerman
    2004-05-31

    Logged In: YES
    user_id=1040718

    Here is what I sent to the jcharts develop mailing list:

    to rid my life kavachart I needed a regression chart. Well, I
    got impatient and put a little hackneyed thing together. Here
    are the files that I have changed.

    Chart type gets a new type RegressionChart.
    AxisChart gets a new instantiator in the ifdom that picks
    charts.
    And finally there's the RegressionChart.java

    I kind of changed the object model around a bit for the
    regression chart since I had occation to use more than just
    one function. Also, it made my life easier to have some
    member data, so AxisChart instantiates a new
    RegressionChart at every request. Also, if the regression line
    goes under the bottom of the graph, it will not yet expand
    the graph downward. Oh yeah, and there's some big honkin
    comments left sittin' around.

    I have only used this in one very specialized case so there's
    probably plenty to do to make it better, but it's pretty nice
    way to start off.

    Oh and I kinda took some of my ideas from this website:
    http://www.math.csusb.edu/faculty/stanton/m262/regress/re
    gress.html so we may need to see how nice a person
    stanton is, since he didn't mention any licensing on the
    website it's not really clear.

     
  • Zorkerman
    Zorkerman
    2004-05-31

    ChartType.java

     
    Attachments
  • Zorkerman
    Zorkerman
    2004-05-31

    AxisChart.java

     
    Attachments
  • Logged In: YES
    user_id=118938

    ok cool.