Flashchart Sample 10

Usage for "chart_colors"

Also have a look at all defined parameters..

Chart Parameter: {flashchart data="CDU,SPD,Grüne,Linke,Sonstige,FDP,Piraten/36,30,14,7,4,3,6"
tooltip="#percent# of votes" width="90%" type="pie" chart_colors="000000,DC143C,228B22,B22222,0000CC,FFCC00,FF3300" alpha="1.0" height="320" title="If the election were next sunday,<br /> which party would you vote for?" dimension="%" bg_image="/plugins/content/flashchart/images/pb.jpg"}pb002{/flashchart}

Notes: With parameter "chart_colors" following colors for chart elements have been defined explicitly:


These colors are used sequentially one after another for every slice of pie chart. Means first data value ("36" - sclice "CDU") gets color "000000" (black), second ("29" - slice "SPD) gets "DC143C" (red), and so on...
You may try out this sample with only changing type="pie" to type="bar_dome"...

 Important: If you want to test this sample via copy/paste, ensure that you paste with option "paste as plain text" otherwise imbedded html-codes may invalidate your input.



Today: 5
Yesterday: 84
This Week: 702
Last Week: 459
This Month: 702
Last Month: 2,167
United States 30.6% USA
Germany 19.4% Germany
Russia 4.4% Russia
France 3.4% France
Italy 2.6% Italy
Indonesia 2.6% Indonesia
India 2.2% India
Poland 2.1% Poland
Spain 2.1% Spain




We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.