View unanswered posts | View active topics It is currently Sun Apr 28, 2024 10:48 pm



Reply to topic  [ 3 posts ] 
Few bugs 
Author Message
Post Few bugs
Hey jean-damien,

Again this project is great work! So easy to work with compared to 1.x. Just wanted to give a bit of feedback to help contribute to the project. I noticed a few things when working with the library. If you are working with drawScale it can sometimes print out rather large labels when working with small numbers. Its seems when dividing for example 1/3. It would provide a label like .33333333. Maybe need an option to set what kind of precision is needed in the labels?

One other thing I noticed, when you are using writeBounds and have VOID values in your dataset it will return 0.12345 as min or max depending on the dataset being worked with.

Thanks!


Mon Dec 13, 2010 6:59 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Few bugs
Hi rdubya,

I've just fixed the issue with the writeBounds() function. (http://wiki.pchart.net/doc.draw.writeBounds.html)

Regarding the scaling issue, this indeed something I want to avoid, do you still have the code with the associated dataset that generated it?

Kind regards,
JD.


Tue Dec 14, 2010 11:08 am
Profile WWW
New pChart user
New pChart user

Joined: Wed Dec 15, 2010 2:24 am
Posts: 1
Post Re: Few bugs
Well the data is just pulled from a mysql table. Here is the dataset, nothing complicated.


[Data] => Array
(
[0] => 0.081
[1] => 0.080
[2] => 0.080
[3] => 0.081
[4] => 0.078
[5] => 0.081
[6] => 0.082
[7] => 0.082
[8] => 0.082
[9] => 0.084
[10] => 0.082
[11] => 0.12345
[12] => 0.12345
[13] => 0.12345
[14] => 0.081
[15] => 0.080
[16] => 0.082
[17] => 0.081
[18] => 0.079
[19] => 0.080
[20] => 0.081
[21] => 0.082
[22] => 0.080
[23] => 0.082
[24] => 0.080
[25] => 0.081
[26] => 0.080
[27] => 0.080
[28] => 0.081
[29] => 0.081
)

It produces the scale I have attached.

Thanks!
Ryan


Attachments:
File comment: Screenshot
Screenshot.png
Screenshot.png [ 7.93 KiB | Viewed 6489 times ]
Wed Dec 15, 2010 2:26 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 23 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