XYSplineRender

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sen.cool
Posts: 2
Joined: Tue Nov 27, 2007 1:59 pm

XYSplineRender

Post by sen.cool » Fri Dec 21, 2007 11:57 am

Hi i m using XYsplineRender along with XYPlot.... to draw a smooth curve graph instead of line chart

suppose i m using the points (1,2) (2,4) (3,1) (3,8) and (4,5) for drawing the curve ....the curve is drawn with four point only and the point (3,8) is ignored while joining the curve....ie the curve doesnt pass through (3,8).But for my application i want the curve to pass through all the points.....is there any way to make the curve pass through all the points.Pls help

krheinwald
Posts: 15
Joined: Thu Mar 27, 2003 10:06 am

Post by krheinwald » Tue Jan 08, 2008 1:59 am

The underlying algorithm for the Splines only allows unique X-values.

Imagine the spline for your case - it would look like an 'S' around x=3, i.e. curling back on itself.

Klaus

Locked