This is a sample how to update a chart dynamicly. If effect selected and button below clicked it will trigger an event script in file "media/plg_content_rgraph/js/draw_event.js", which then will re-draw the current chart using he selected effect.

 

Important: If you use parameter "draw_option" with effect settings you must consider following. Because rgraph uses as delimiter curly brackets ("{" "}") you must code the draw_option parameter by changing curly brackets into square brackets. E. g. change "wave({frames: 60})" into "wave([{frames: 60])" If you do not change accordingly the chart will not display.

Parameter for creation of chart

{rgraph chart_name="chart" type="Bar" title="show some Open Effects" width="600" height="300"
 data="1,2,3,4,5,6,7,8,9,10/5000,5000,5000,5000,6000,7000,8000,8000,11000,9000" colorsSequential="true"
yaxisScaleMax="12000" marginBottom="30" marginLeft="70"
event_script="media/plg_content_rgraph/js/draw-event.js" draw_option="grow()"}cvs{/rgraph}

 

[No canvas support]>

 

 Select Effect:

 

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.
go back...

Visitors

Today: 45
Yesterday: 33
This Week: 194
Last Week: 590
This Month: 1,317
Last Month: 2,235
This Year: 6,682
Total: 239,275
0239275
Germany 30.9% Germany
USA 22.8% USA
France 3.3% France
Italy 2.7% Italy
Indonesia 2.1% Indonesia
Poland 2.0% Poland
Netherlands 1.8% Netherlands

Total:

209

Countries

Weather

Weather in Dublin

18th April, 2024 - 13:41
Clear Sky
68°F 64°F min 71°F max
6:49 20:13
Humidity: 55 %
Wind: 5.8 mph West
Pressure: 1,018 hPa
Visibility: 32,808 ft
We use cookies

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.