Skip to main content

Heading

Heading represents the plot label

TitleSubtitle

Restriction

Plot can only have one Heading element

Props

Mandatory

  • title: heading title text content
    type: string

Optional

  • titleStyle: customises title style
    type: CSSProperties
    default: {}

  • titleClass: adds a class to the title
    type: string
    default: ""

    TitleSubtitle
  • subtitle: heading subtitle text content
    type: string
    default: ""

  • subtitleStyle: customises subtitle style
    type: CSSProperties
    default: {}

  • subtitleClass: adds a class to the subtitle
    type: string<br
    default: ""

    TitleSubtitle
  • position: adds a class to the subtitle
    type: 'top' | 'bottom'<br
    default: 'top'

    Top heading
    Bottom heading