Flashchart Sample 7

Different colors for barcharts - Parameter "multibar_color"

Also have a look at other parameters...

Chart Parameters: {flashchart height="400" width="100%"
data="database" sql="Select title, hits From jos_content Order By hits Desc Limit 10" type="bar_dome" tooltip="#val# Hits" title="Most read articles"
x_label_rotate="40" multibar_color="1"}sample007{/flashchart}

Note: My installed flashChart plugin has set following color values (via Plugin Parameter "chart_colors"):
chart_colors="4169E1,008000,7A0000,00BFFF,DC143C,191970,FF6600,A52A2A,52CCA3,996633,339933" - means we have 11 colors defined.
These colors are assigned one after the another to a single bar. As in SQL-statement value "LIMIT" is set to "10", we need 10 different colors - if we had less than 10 colors, the missing colors are randomly generated and assigend to the last bars.

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: 128
Yesterday: 84
This Week: 128
Last Week: 757
This Month: 2,472
Last Month: 2,684
United States 33.3% USA
Germany 16.0% Germany
Russia 4.8% Russia
France 3.5% France
Italy 2.5% Italy
Indonesia 2.5% Indonesia
India 2.4% India
Poland 2.2% Poland




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.