X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=a5869fa967a197c9b334189c269be390fbba46be;hb=2996a18eb00729b2624d8d75e8d24b056c5732bc;hp=fec525460a745e7100dfc4bdd08fbe7f83226ff1;hpb=866ceb258a016484e30d2c7f96cb6cbb9ff05c8c;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index fec5254..a5869fa 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", @@ -81,6 +87,12 @@ Dygraph.OPTIONS_REFERENCE = // "type": "function(event, x, points,row)", "description": "When 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}, … ]" }, + "drawHighlightCallback": { + "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"], @@ -263,6 +275,13 @@ Dygraph.OPTIONS_REFERENCE = // "example": "0.5, 2.0", "description": "The width of the lines connecting data points. This can be used to increase the contrast or some graphs." }, + "strokePattern": { + "default": "null", + "labels": ["Data Line display"], + "type": "array", + "example": "[10, 2, 5, 2]", + "description": "A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array." + }, "wilsonInterval": { "default": "true", "labels": ["Error Bars"],