View unanswered posts | View active topics It is currently Wed May 08, 2024 11:13 am



Reply to topic  [ 5 posts ] 
Pie chart only 8 values accepted 
Author Message
pChart user
pChart user

Joined: Wed Feb 02, 2011 12:01 pm
Posts: 6
Post Pie chart only 8 values accepted
Hello.

I must admin that pChart is one of the most powerful libraries out there. It's ability to create modern look is enormous.

My problem - I wanted to draw a pie chart with 10 values. I've even copy pasted the example and got the error. It was pointing to pData.class.php 45th line. There is pData class definition and inside it there's a "Palette" variable - $Palette. I've modified the variable to hold 10 values instead of predefined 8 and everything works like a breeze.

I hope this will help people with the same problem as well as I would like to know why there were predefined only 8 values.
I know that I can set up manually the palette inside my code, however I am preferring the default settings, so I believe more options should be added instead of 8.

Great library, wonderful developer and again, amazing library!

Lukas Pukenis


Wed Feb 02, 2011 12:07 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Pie chart only 8 values accepted
Hi Lukas,

Thanks for your feedback ;o)

I'm currently reworking the pie class, I'll include the palette topic in the todo list.

Kind regards,
D.


Wed Feb 02, 2011 12:25 pm
Profile WWW
pChart user
pChart user

Joined: Wed Feb 02, 2011 12:01 pm
Posts: 6
Post Re: Pie chart only 8 values accepted
I am glad to hear that, Jean!

You seem to be very inspired to develop such a big scale project(in flexibility and capability means).
I am so enjoyed by the pChart:).

Good luck upgrading this library to be even more amazing.

Kind regards,

Lukas


Wed Feb 02, 2011 3:27 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Pie chart only 8 values accepted
Labels shouldn't overlap anymore now and palette overflow will trigger the creation of new colors.


Attachments:
example.draw2DPie.labels.png
example.draw2DPie.labels.png [ 16.47 KiB | Viewed 7678 times ]
Wed Feb 02, 2011 4:38 pm
Profile WWW
pChart user
pChart user

Joined: Wed Feb 02, 2011 12:01 pm
Posts: 6
Post Re: Pie chart only 8 values accepted
Great update!

I am amazed by how fast you've done that.

Lukas


Thu Feb 03, 2011 1:07 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

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