From: Dan Vanderkam Date: Tue, 23 Mar 2010 14:05:22 +0000 (-0700) Subject: document some more options X-Git-Tag: v1.0.0~705 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=85cda1ca16a0e2af35c880e3e40230a8b637c017;p=dygraphs.git document some more options --- diff --git a/docs/index.html b/docs/index.html index c8ac16f..77879ce 100644 --- a/docs/index.html +++ b/docs/index.html @@ -474,7 +474,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high)

Other Options

-

These are the options that can be passed in through the optional third parameter of the Dygraph constructor. To see demonstrations of many of these options, browse the dygraphs tests directory.

+

These are the options that can be passed in through the optional third parameter of the Dygraph constructor. Under each option is a set of links to tests which demonstrate its use.

@@ -746,6 +746,56 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high)
Tests: custom-bars zero-series
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
drawCallbackfunction(dygraph, is_initial)nullWhen set, this callback gets called every time the dygraph is drawn. This includes the initial draw, after zooming and repeatedly while panning. The first parameter is the dygraph being drawn. The second is a boolean value indicating whether this is the initial draw. +
Tests: callback synchronize
+
gridLineColorred, bluergb(128,128,128)The color of the gridlines. +
Tests: grid_dot
+
highlightCallbackfunction(event, x, points)nullWhen set, this callback gets called every time a new point is highlighted. The parameters are the JavaScript mousemove event, the x-coordinate of the highlighted points and an array of highlighted points: [ {name: 'series', yval: y-value}, … ] +
Tests: callback crosshair
+
strokeWidth0.5, 2.01.0The width of the lines connecting data points. +
Tests: grid_dot
+
widthinteger480Width/Height (in pixels) of the chart. If the container div has been explicitly sized, these attributes will be ignored. +
Tests: demo link-interaction no-range
+
height320