X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-options-reference.js;h=9cffd5e60935e803caf79674e8897da3fd598c7f;hb=refs%2Fheads%2Fmaster;hp=4a066bb9f4c70f083b872ecea6490986fe04e5bd;hpb=fd6b8dadbaa0614671bef1508c23d6a932e25081;p=dygraphs.git diff --git a/src/dygraph-options-reference.js b/src/dygraph-options-reference.js index 4a066bb..9cffd5e 100644 --- a/src/dygraph-options-reference.js +++ b/src/dygraph-options-reference.js @@ -299,6 +299,12 @@ OPTIONS_REFERENCE = // "type": "integer", "description": "Width, in pixels, of the chart. If the container div has been explicitly sized, this will be ignored." }, + "pixelRatio": { + "default": "(devicePixelRatio / context.backingStoreRatio)", + "labels": ["Overall display"], + "type": "float", + "description": "Overrides the pixel ratio scaling factor for the canvas's 2d context. Ordinarily, this is set to the devicePixelRatio / (context.backingStoreRatio || 1), so on mobile devices, where the devicePixelRatio can be somewhere around 3, performance can be improved by overriding this value to something less precise, like 1, at the expense of resolution." + }, "interactionModel": { "default": "...", "labels": ["Interactive Elements"], @@ -586,7 +592,7 @@ OPTIONS_REFERENCE = // "default": "null", "labels": ["Axis display", "Interactive Elements"], "type": "float", - "description": "A value representing the farthest a graph may be panned, in percent of the display. For example, a value of 0.1 means that the graph can only be panned 10% pased the edges of the displayed values. null means no bounds." + "description": "A value representing the farthest a graph may be panned, in percent of the display. For example, a value of 0.1 means that the graph can only be panned 10% passed the edges of the displayed values. null means no bounds." }, "title": { "labels": ["Chart labels"],