X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Findex.html;h=0c80ef482679a59dc831f45f15059a5c2323c976;hb=eca085ecfb71db2647c00a9f4e528128878d8372;hp=5caeef25f4fb5cdc9e827058e534f923b6d8c81f;hpb=353a0294d48f0e9338280a45353c1811e5df7012;p=dygraphs.git diff --git a/docs/index.html b/docs/index.html index 5caeef2..0c80ef4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -199,6 +199,7 @@ document.getElementById("graphdiv"), "temperatures.csv", null, { rollPeriod: 7, + showRoller: true, valueRange: [25, 100] } ); @@ -213,13 +214,14 @@ document.getElementById("graphdiv3"), "temperatures.csv", null, { rollPeriod: 7, + showRoller: true, valueRange: [25, 100] } ); -

A rolling average can always be set using the text box in the lower left-hand corner of the graph.

+

A rolling average can be set using the text box in the lower left-hand corner of the graph (the showRoller attribute is what makes this appear).

Error Bars

Another significant feature of the dygraphs library is the ability to display error bars around data series. One standard deviation must be specified for each data point. A +/-n sigma band will be drawn around the data series at that point. If a moving average is being displayed, DateGraph will compute the standard deviation of the average at each point. (i.e. σ = sqrt((σ_1^2 + σ_2^2 + ... + σ_n^2)/n))

@@ -248,6 +250,7 @@ g = new DateGraph( "twonormals.csv", null, { rollPeriod: 7, + showRoller: true, errorBars: true, valueRange: [50,125] } @@ -265,6 +268,7 @@ new DateGraph( "twonormals.csv", null, { rollPeriod: 14, + showRoller: true, errorBars: true, valueRange: [50, 125] } @@ -292,6 +296,7 @@ new DateGraph( "dow.txt", null, { + showRoller: true, customBars: true, labelsKMB: true, padding: {left:30, right:30, top:5, bottom:5} @@ -309,6 +314,10 @@ new DateGraph( 7 Number of days over which to average data. Discussed extensively above. + showRoller + true + Should the rolling average period text box be shown? Default is false. + colors ['red', '#00FF00'] List of colors for the data series. These can be of the form "#AABBCC"