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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

min
number
Force the minimum value of the secondary Y scale. Auto-computed from data when absent.
max
number
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.
title
string
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

vue