Scale
Configure axis ticks, labels, and numeric formatting.
Render Time0 ms
Canvas Size600 × 350
Data Points0
Series Count0
Options
General
| Option | Type | Default | Description |
|---|---|---|---|
shorthandNumerics | boolean | false | Show 9M instead of 9000000 |
Per-Axis (X and Y)
| Option | Type | Default | Description |
|---|---|---|---|
ticks | number | 10 | Number of tick marks |
tickLabels | string[] | — | Custom labels (cycles if needed) |
drawTicks | boolean | true | Show tick marks |
drawLabels | boolean | true | Show tick labels |
labelDirection | horizontal|vertical|slanted | horizontal | Label orientation |
axisColour | string | #5e5e5e | Axis line color |
Y-Axis Only
| Option | Type | Default | Description |
|---|---|---|---|
startAtZero | boolean | false | Force scale to start at 0 |
Custom Labels
Replace numeric labels with text:
ts
scale: {
x: {
ticks: 7,
tickLabels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
optimiseTicks: true
}
}Render Time0 ms
Canvas Size600 × 350
Data Points0
Series Count0
Type Reference
See AxisOptions for full TypeScript definitions.