Data for this line chart is built by rgraph's utility function "getDataviaFormula". This function takes a formula as input and calculates y-values based on provided start x-value, x-steps (intervals) and a maximum x-value. The number of iterations is limited to 500. The calculation finishes when either maximum of x-values or maximum of iteration is reached.
Important: Because rgraph uses as delimiter curly brackets ("{" "}") you must recode the draw_option parameter from "trace( { frames: 60 } );" to "trace2( [ frames: 60 ] );" (use square brackets instead). If you do not change accordingly the chart will not display.

Parameter for creation of chart

{rgraph type="Line" title="A Line Chart with calculated Data via Formula: y=10*(2*e^-(0.2*x)*sin(x * 2*pi))"
width="650" height="300" data="formula" formula="y=20*(2*e^-(0.2*x)*sin(x*2*pi))" scaleDecimals="3" xaxisPosition="center"
filled="0" backgroundGridAutofit="false" tooltip="x=#label# value=#val#" x_step="10" x_max="20" x_interval="0.1"
xaxisTickmarksCount="10" draw_option="trace([frames: 60])" filled="0" highlightStyle="halo"}cvs{/rgraph} 

 

[No canvas support]>

 

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: 26
Yesterday: 59
This Week: 85
Last Week: 590
This Month: 1,208
Last Month: 2,235
This Year: 6,573
Total: 239,166
0239166
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 Columbus

16th April, 2024 - 9:54
Overcast Clouds
65°F 61°F min 67°F max
6:51 20:11
Humidity: 53 %
Wind: 6.2 mph East
Pressure: 1,019 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.