X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-options-reference.js;h=9cffd5e60935e803caf79674e8897da3fd598c7f;hb=61767ef761b66b06e089cd081ac68527575af38b;hp=3bf2a56a50ee83bfa83094e7d3dd9347edf97854;hpb=aaec6de56dba8ed712fd7b9d949de47b46a76ccd;p=dygraphs.git diff --git a/src/dygraph-options-reference.js b/src/dygraph-options-reference.js index 3bf2a56..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"],