Skip to content

IResponsiveRule

Type interface

A responsive rule: settings for matching elements that apply while the chart's size meets a condition.

More info: Responsive

Sources

IResponsiveRule is an interface: it describes a shape of data and is not imported on its own.

Properties

applied

Type undefined | false | true

Whether the rule currently applies.

applying

Type undefined | () => void

Called when the rule starts to apply.

name

Type undefined | string

Class name of the elements the rule applies to, such as "AxisLabel".

relevant

Type (width: number, height: number) => boolean

Returns true while the rule should apply. Gets the root's width and height in pixels; the breakpoint functions of ResponsiveTheme, such as ResponsiveTheme.widthM, fit here.

removing

Type undefined | () => void

Called when the rule stops applying.

settings

Type any

Settings for the elements while the rule applies. Needs name.

tags

Type string | string[]

Theme tags the elements must also have.

template

Type Template

The theme rule's Template that settings are set on.