X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=dygraph-options-reference.js;h=2b45ed335a2c16bb87a7210dfc6e93ab199f259d;hb=4270a2836fae730a6c3e0590d4a6fba7d63f86bc;hp=7f16cf273c558f8af11531b95377a561a6ec6a25;hpb=b5bdd85b1a969707aa52a0253712fdab7f2108ce;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 7f16cf2..2b45ed3 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -41,7 +41,13 @@ Dygraph.OPTIONS_REFERENCE = // "default": "false", "labels": ["Data Line display"], "type": "boolean", - "description": "Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart." + "description": "Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. The small dot can be replaced with a custom rendering by supplying a drawPointCallback." + }, + "drawPointCallback": { + "default": "null", + "labels": ["Data Line display"], + "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", + "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color." }, "height": { "default": "320", @@ -96,6 +102,12 @@ Dygraph.OPTIONS_REFERENCE = // ["row", "???"] ] }, + "drawHighlightPointCallback": { + "default": "null", + "labels": ["Data Line display"], + "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", + "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color." + }, "includeZero": { "default": "false", "labels": ["Axis display"],