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.

back...

Visitors

Today: 16
Yesterday: 16
This Week: 117
Last Week: 112
This Month: 239
Last Month: 579
0146919
United States 35.4% USA
Germany 13.3% Germany
Russia 4.7% Russia
France 3.3% France
Indonesia 2.6% Indonesia
Italy 2.6% Italy
India 2.4% India
Poland 2.2% Poland

Total:

204

countries
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
Ok