IChartSecondaryYAxis
interface
Data Visualisation
Configuration object for the secondary (right-hand) Y axis on a cartesian chart. When passed to secondaryYAxis on OrigamChartCartesian, series with yAxis: 1 are projected against this scale. Omit to use the primary left axis only.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- minnumber
- Force the minimum value of the secondary Y scale. Auto-computed from data when absent.
- maxnumber
- Force the maximum value of the secondary Y scale. Auto-computed from data when absent.
- format(value: number) => string
- Formatter applied to the right-axis tick labels.
- titlestring
- Optional axis title rendered alongside the right axis.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Adding a secondary Y axis with a custom formatter