FlashChart -Sample 14

Rearrange data for stacked bar chart - (also have a look on all other parameters)

Chart Parameter: {flashchart data="50,60,70,80,90,60|109,120,100,130,,100" title="Bar Chart"
menu="stacked bar chart,stacked_barchart" create_script="bar_chart" type="bar_cylinder"
bg_image="plugins/content/flashchart/images/powered_by.png" alpha="0.9"}sample14{/flashchart}

{flashchart data="50,60,70,80,90,60|109,120,100,130,,100" title="Stacked Bar Chart"
menu="bar chart,bar_chart" create_script="stacked_barchart" hide_chart="1"
bg_image="plugins/content/flashchart/images/powered_by.png" alpha="0.9"
type="bar_stack" rearrange_data="1" show_barvalues="2" tag_style="font-weight:bold; color:#51698F;"}sample14{/flashchart}

Please select choice in chart menu

Notes:
In this sample two charts are generated. Second chart (the stacked bar chart) is not displayed ("hidden") as it has parameter "hide_chart" set. It may be displayed by clicking choice in chart menu. Both javascripts to be used in "menu" have been created dynamically via parameter "create_script".

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.