Legends
You may create legends, (if your data contains multiple data groups) with flashChart's parameter "legend".
For pie charts legends are displayed, if you have set parameter "pie_legend" to "1"
(or globally via plugin parameter).
For each item of legend you may define an action via parameter "key_onclick".
If there is no "key_onclick" attribute found, flashChart will set and use default "toggle-visibility".
If you then click an item, the related chart element will be hidden or displayed.
Note: For stacked bar chart there is no default for "key_onclick".
FlashChart parameters for above sample:
{flashchart title="Skill Profile - Demo" type="radar_area"
alpha="0.5" width="100%" height="400" data="50,50,50,50,50,50,50|60,30,55,70,40,40,60"
y_max="80" y_step="20" legend_fontsize="13"
radar_spoke_labels="Teaming,SOA,Project<br />Management,
Programming<br />languages,Databases,Operating <br />Systems,Experience"
tooltip="#legend#: #val# points on #spoke#" legend="Requirement,Candidad"
right_legend="0" }radar_area{/flashchart}
Navigate to Websites
Navigate to Websites (use URLs)
In this sample both parameter "onclick" und "key_onclick" are used to navigate to remote websites,
which deal with "populating statistics in german countries".
Both parameters are identically setup with a series of urls - a one to one relation for data entry and
URL entry has been set.
Also see this on flashchart's parameters below.
FlashChart's parameters for above sample:
{flashchart title="Bundesländer mit der geringsten Bevölkerungsdichte<br /> (Einwohner je Quadratkilometer)"
height="500" type="pie" right_legend="1" pie_radius="140" label_fontsize="11"
data="179,166,202,177,85,71,115,139"
x_axis_labels="Schleswig-Holstein,Niedersachsen,Rheinland Pfalz,Bayern,Brandenburg,Mecklenburg-Vorp.,Sachsen-Anhalt,Thüringen"
tooltip="in #label# liegt die Bevölkerungsdichte <br />bei #val# Einwohnern pro Quadratkilometer"
onclick="http://www.schleswig-holstein.de/Portal/DE/LandLeute/ZahlenFakten/Bevoelkerung/Bevoelkerung_node.html,
http://www.niedersachsen.de/portal/live.php?navigation_id=6970&article_id=19947&_psmand=1000,
http://www.statistik.rlp.de/no_cache/staat-und-gesellschaft/bevoelkerung-und-gebiet/tabellen/bevoelkerungsdichte/,
https://www.statistik.bayern.de/statistik/bevoelkerungsstand/,
http://de.wikipedia.org/wiki/Brandenburg#Bev.C3.B6lkerungsentwicklung,
http://www.statistik-mv.de/cms2/STAM_prod/STAM/de/bhf/index.jsp,
http://www.statistik.sachsen-anhalt.de/bevoelkerung/index.html,
http://www.tls.thueringen.de/datenbank/TabAnzeige.asp?tabelle=zr000101||"
key_onclick="http://www.schleswig-holstein.de/Portal/DE/LandLeute/ZahlenFakten/Bevoelkerung/Bevoelkerung_node.html,
http://www.niedersachsen.de/portal/live.php?navigation_id=6970&article_id=19947&_psmand=1000,
http://www.statistik.rlp.de/no_cache/staat-und-gesellschaft/bevoelkerung-und-gebiet/tabellen/bevoelkerungsdichte/,
https://www.statistik.bayern.de/statistik/bevoelkerungsstand/,
http://de.wikipedia.org/wiki/Brandenburg#Bev.C3.B6lkerungsentwicklung,
http://www.statistik-mv.de/cms2/STAM_prod/STAM/de/bhf/index.jsp,
http://www.statistik.sachsen-anhalt.de/bevoelkerung/index.html,
http://www.tls.thueringen.de/datenbank/TabAnzeige.asp?tabelle=zr000101||"}chart_01{/flashchart}
Script (create_script)
Use Parameter "create_script"
Instead displaying a Popup-Window,
you may replace one chart with another chart.
To implement this it is necessary to provide javascripts to do the job.
FlashChart helps with this via new parameter "create_script".
You then will place the names of created scripts into parmeters "onclick" and/or "key_onclick".
This sample displays a "parent" chart from which you may drill into three other charts,
which are hidden by setting parameter "hide_chart" to "1".
To be able to replace one chart by another it is important,
that all charts have been assigned the same chart-ID (here "revenue1").
FlashChart parameters for above sample:
{flashchart title="Revenue in January by Location" width="100%" height="350" type="pie"
right_legend="1" tooltip="in #label# revenue is #val#€"
data="Frankfurt,Munic,Stuttgart/48000,46000,51000"
bg_image="/media/plg_content_flashchart/images/sample_logo.png"
create_script="revenue_total"
key_onclick="revenue_frankfurt,revenue_muenchen,revenue_stuttgart"
onclick="revenue_frankfurt,revenue_muenchen,revenue_stuttgart"}revenue1{/flashchart}
{flashchart title="Revenue in January - Frankfurt" height="350" width="100%"
create_script="revenue_frankfurt" hide_chart="1"
onclick="revenue_total,revenue_total,revenue_total"
data="1,2,3,4,5/2000,2000,3500,2500,2600|3200,3100,3200,3300,3300|3100,4100,3200,4400,4500"
bg_image="/media/plg_content_flashchart/images/sample_logo.png"
tooltip="#key#: #val#€ <br /><<br />...click to go back"
legend="Books,CDs,DVDs" x_legend="Week" }revenue1{/flashchart}
{flashchart title="Revenue in January - Munic" height="350" width="100%"
create_script="revenue_muenchen" hide_chart="1"
onclick="revenue_total,revenue_total,revenue_total"
data="1,2,3,4,5/1800,1800,3200,2300,2500|3100,3000,3100,3200,3200|3000,4000,3100,4300,4400"
bg_image="/media/plg_content_flashchart/images/sample_logo.png"
tooltip="#key#: #val#€ <br /><br />...click to go back"
legend="Books,CDs,DVDs" x_legend="Week" }revenue1{/flashchart}
{flashchart title="Revenue in January - Stuttgart" height="350" width="100%"
create_script="revenue_stuttgart" hide_chart="1" type="bar_stack" rearrange_data="1"
onclick="revenue_total"
data="1,2,3,4,5/2200,2200,3700,2700,2800|3400,3300,3400,3500,3500|3300,4300,3400,4600,4700"
bg_image="/media/plg_content_flashchart/images/sample_logo.png"
tooltip="#key#: #val#€ (Total #total#€)<br /><br />...click to go back"
legend="Books,CDs,DVDs,Print"
key_onclick=",,,print_page" x_legend="Week" }revenue1{/flashchart}