| commit | author | age | ||
| 83c3f6 | 1 | # Device Pixel Ratio |
| SP | 2 | |
| 3 | By default the chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays). | |
| 4 | ||
| 5 | For applications where a chart will be converted to a bitmap, or printed to a higher DPI medium it can be desirable to render the chart at a higher resolution than the default. | |
| 6 | ||
| 7 | Setting `devicePixelRatio` to a value other than 1 will force the canvas size to be scaled by that amount, relative to the container size. There should be no visible difference on screen; the difference will only be visible when the image is zoomed or printed. | |
| 8 | ||
| 9 | ## Configuration Options | |
| 10 | ||
| 11 | | Name | Type | Default | Description | |
| 12 | | ---- | ---- | ------- | ----------- | |
| 13 | | `devicePixelRatio` | `Number` | window.devicePixelRatio | Override the window's default devicePixelRatio. | |