Line Chart with calculated Data via Formula

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 "trace2( { 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=2*e^-(0.2*x)*sin(x * 2*pi)" 
width="650" height="300" data="formula" formula="y=2*e^-(0.2*x)*sin(x*2*pi)" ymax="2.0" scaleDecimals="3"
xaxispos="center" backgroundGridAutofit="false" tooltip="x=#label# value=#val#" x_step="10" 
draw_option="trace2([frames: 60]);"}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: 17
Yesterday: 7
This Week: 17
Last Week: 115
This Month: 417
Last Month: 593
0143983
United States 35.8% USA
Germany 13.1% Germany
Russia 4.5% Russia
France 3.2% France
Italy 2.6% Italy
Indonesia 2.6% Indonesia
India 2.4% India
Poland 2.3% Poland

Total:

203

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