Solved

creating a jpgraph theme for a pie chart

Posted on 2011-02-15
1
1,349 Views
Last Modified: 2012-05-11
Does any one know how to create a jpgraph color theme for a pie chart rather than having to use the default color themes?
Cheers
GMac
0
Comment
Question by:gerrymac1943
1 Comment
 
LVL 2

Accepted Solution

by:
requeue earned 500 total points
ID: 34896880
Please check following site.

http://jpgraph.net/download/manuals/chunkhtml/ch31.html

You can extend some pre-defined theme.
To use favorite color, override GetColorList() function, which is called when ApplyPlot () called.

function GetColorList() {
	        return array(
	            '#183152',
	            '#C4D7ED',
	            '#375D81',
	            '#ABC8E2',
	            '#E1E6FA',
	            '#9BBAB2',
	            '#3B4259',
	            '#0063BC',
	            '#1D5A73',
	            '#ABABFF',
	            '#27ADC5',
	            '#EDFFCC',);
   }
    

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question