Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1423
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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