View unanswered posts | View active topics It is currently Wed May 15, 2024 12:15 am



Reply to topic  [ 5 posts ] 
The lines should not be lower 0 
Author Message
New pChart user
New pChart user

Joined: Sun Sep 25, 2011 9:48 pm
Posts: 1
Post The lines should not be lower 0
I draw the splinechart, Y-axis is from -1 to 7. All my values more than 0, but because of auto-smoothing it somtimes displays lower 0. How i can avoid this?
Image


Mon Sep 26, 2011 6:54 am
Profile
Regular pChart user
Regular pChart user

Joined: Sat Feb 19, 2011 1:00 am
Posts: 16
Post Re: The lines should not be lower 0
I get this also


Tue Sep 27, 2011 12:34 am
Profile
pChart Guru
pChart Guru

Joined: Sun Jun 19, 2011 6:36 pm
Posts: 52
Post Re: The lines should not be lower 0
Hmm if there would be an extra point on X axis between the two on 0 then it would not go lower. I can't find a better solution.

_________________
Hope I helped :)
Image
If I helped, say thanks, so that I can see that my work isn't useless.


Sun Oct 02, 2011 12:13 am
Profile
pChart user
pChart user

Joined: Wed Oct 05, 2011 9:18 am
Posts: 4
Post Re: The lines should not be lower 0
It's not possible without adding more points, since a spline is a polynomal function which is built by interpolationg your given coordinates.

Have a look at this wikipedia article: http://en.wikipedia.org/wiki/Spline_(mathematics)

Alternatively, you can use a line chart which is 100% accurate: http://wiki.pchart.net/doc.chart.drawlinechart.html.

If you are plotting a known function, you can also use createFunctionSerie: http://wiki.pchart.net/doc.dataset.createfunctionserie.html

regards from Central Europe, Emi


Wed Oct 05, 2011 10:17 am
Profile
New pChart user
New pChart user

Joined: Tue Nov 22, 2011 5:14 pm
Posts: 3
Post Re: The lines should not be lower 0
It really would be handy to be able to cap the spline curve, especially when the curve hits an axis for example. The need to do this must be very common, stocks can't be priced less than $0, you can't have negative people showing up for a class, your sales team can't sell negative cars in March. I'm currently looking at my chart which shows negative hours worked for some days!

Even with lots of internal points with value=0 the spline still overshoots and it's just asking for comments from clients. Of course a line chart is more accurate, it's just not so ...sexy!

I've seen this capping feature on other charting programs, so let's add this to the wish list.

Just my two cents

Patrick


Tue Nov 29, 2011 12:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron