[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1458
  • Last Modified:

creating a jpgraph theme for a pie chart

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
gerrymac1943
Asked:
gerrymac1943
1 Solution
 
requeueCommented:
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

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now