Interpolateable Datasets (Function2D plotter)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
zany
Posts: 20
Joined: Mon Mar 15, 2004 2:36 pm
Location: Germany

Interpolateable Datasets (Function2D plotter)

Post by zany » Wed Apr 14, 2004 10:37 am

Hi,

I'm working on 2D functions currently and got a working draft with minimum effort.

Please tell me if this is the right approach or if we should make more visible and complex model for that.

Attached are three extension classes to jfreechart and one sample applet/application.

Here is a sketch:
  • Provide an interface to (XY) Dataset to get interpolated data. (Think of line charts with other means that just to "connect dots", i.e. bezier curves).
  • Some XYRenderer that make use of those extra information (currently just a proof of concept, ugly one)
  • Function2Ds wrapped in such an interpolateable dataset so they can be properly evaluated at all screen dots.
This is a minimalistic approach with the drawback of "hiding" the 2D functions from renderers. I think exposing a way to interpolate values from datasets is a nice general feature though. One could use these functions combined with other (XY) charts. I.e. regression functions over quarterly sales data.
I havn't used this on CategoryDataset, but I assume there could be interpolated data as well and this approach scales to that (as well as 3D f.e.), too.

Let me know if this is worth stuffing into jfreechart in the first place.

Code and Example: http://www.informatik.uni-oldenburg.de/ ... rtplotter/

cu,
Christian

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Apr 14, 2004 11:57 am

This looks interesting...can you add a reference in the Patch Manager at SourceForge. It may take a week or so before I'll have time to look at it.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked