Solved

creating a jpgraph theme for a pie chart

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

746 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

11 Experts available now in Live!

Get 1:1 Help Now