Skip to main content

SeriesScales

Defines scale parameters for series of chart.

Props

xScaleType

  • Type: xScaleType: XScaleType
  • Default: ScaleType.Ordinal

The x axis scale type

yScaleType

  • Type: yScaleType: ScaleContinuousType
  • Default: ScaleType.Linear

The y axis scale type.

xNice

  • Type: xNice?: boolean
  • Default: false

Extends the x domain so that it starts and ends on nice round values.

yNice

  • Type: yNice?: boolean
  • Default: false

Extends the y domain so that it starts and ends on nice round values.

timeZone

  • Type: timeZone?: string
  • Default: 'local'

If using a ScaleType.Time this timezone identifier is required to compute a nice set of xScale ticks. Can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'utc+3', or the strings 'local' or 'utc'.