Description Usage Arguments Value
See here for more detailed documentation: https://www.chartjs.org/docs/latest/axes/.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
chart |
A |
id |
The id of the axis to alter (character scalar, should start with "x" or "y"). |
xOrY |
Whether the axis is an x-axis or y-axis object (character scalar, one of |
... |
Additional named arguments to add to the axis. |
position |
One of: |
display |
Whether to display the axis (boolean scalar). |
grid |
Whether to draw grid lines for the axis (boolean scalar). |
type |
The type of the axis (should keep as "linear") (character scalar). |
title |
The title/label of the axis (character scalar). |
percent |
Whether the axis should be displayed as a percent (boolean scalar). |
decimals |
The number of decimal places to use for percentage axes (integer scalar). |
min, max |
The minimum/maximum values to use for the axis (numeric/character scalar). |
suggestedMin, suggestedMax |
The suggested minimum/maximum values to use for the axis (numeric/character scalar). |
A modified chartjs
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.