Skip to main content

Common Axis Base Type and Options

Common Axis Base Type and Options

All the axis types in SciChart inherit from AxisCore📘 - a common type shared across both 2D and 3D Charts - and all 2D Axis inherit AxisBase2D📘. 

The inheritance diagram for Axis in SciChart.js looks like this:

Common Properties on an Axis​

Common properties on an axis allow you to configure the following things:

  • Showing/hiding and styling of Gridlines 
  • Showing/hiding and styling of labels
  • Alignment of the axis
  • Formatting of labels
  • Getting / setting visibleRange or padding
  • Getting / setting ID - used in multi-axis scenarios
  • Styling border, background
  • Setting axis title

The properties common to the AxisBase2D / AxisCore classes can be found in the TypeDoc API documentation📘.

Specific Axis Types​

The following sections go into further details for specific axis types, as well as giving code samples on how to configure and use each axis.

Axis TypeDescription
NumericAxisValue Axis / Numeric Types
PolarNumericAxisValue Axis / Numeric Types for Polar Charts
DateTimeNumericAxisValue Axis with additional features for Dates and Time formatting
CategoryAxisCategory Axis - measures using index - Numeric Types or Dates
PolarCategoryAxisCategory Axis for Polar Charts - measures using index - Numeric Types or Dates
LogarithmicAxisLogarithmic Axis supporting Base2, BaseE, Base10 with or without scientific notation