Solved

creating a jpgraph theme for a pie chart

Posted on 2011-02-15
1
1,327 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now