From: Dan Vanderkam Date: Sat, 25 Feb 2012 19:38:36 +0000 (-0800) Subject: Merge pull request #123 from kberg/custom-points X-Git-Tag: v1.0.0~323 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4270a2836fae730a6c3e0590d4a6fba7d63f86bc;p=dygraphs.git Merge pull request #123 from kberg/custom-points Custom drawing circles --- 4270a2836fae730a6c3e0590d4a6fba7d63f86bc diff --cc dygraph-options-reference.js index 7f16cf2,35d6c5f..2b45ed3 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@@ -87,15 -84,15 +93,21 @@@ Dygraph.OPTIONS_REFERENCE = // [ {name: 'series', yval: y-value}, … ]" + "type": "function(event, x, points, row)", + "description": "When set, this callback gets called every time a new point is highlighted.", + "parameters": [ + ["event", "the JavaScript mousemove event"], + ["x", "the x-coordinate of the highlighted points"], + ["points", "an array of highlighted points: [ {name: 'series', yval: y-value}, … ]"], + ["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"],