pChart 2.x forum
http://wiki.pchart.net/forum/

Missing drawFilledCubicCurve in pChart 2 - no replacement
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=40165
Page 1 of 1

Author:  funa [ Sun Dec 29, 2013 12:59 pm ]
Post subject:  Missing drawFilledCubicCurve in pChart 2 - no replacement

I was using pChart1 library for some time and it still works fine.
I wanted to upgrade to the latest version 2.x.
Unfortunately, I discovered that the drawFilledCubicCurve function does not exist anymore.

I trued to use drawFilledSplineChart but its output is far from drawFilledCubicCurve.

See some examples:

Chart created by pChart 1 drawFilledCubicCurve:

Image

Chart created by pChart 2 drawFilledSplineChart:

Image

Another example:

Chart created by pChart 1 drawFilledCubicCurve:

Image

Chart created by pChart 2 drawFilledSplineChart:

Image

Another example:

Chart created by pChart 1 drawFilledCubicCurve:

Image

Chart created by pChart 2 drawFilledSplineChart:

Image

As you can see the curve is not smooth and rounded as it was with CubicCurve. This is even more evident when the points are far apart.

The fill is also far from complete fill.

Am I missing something or this is a bug?

I would really appreciate if there would be a complete replacement for the old drawFilledCubicCurve function.

Thanks,
Igor

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/