Back to Chart Js

Logarithmic Axis

docs/axes/cartesian/logarithmic.md

4.5.1863 B
Original Source

Logarithmic Axis

The logarithmic scale is used to chart numerical data. It can be placed on either the x or y-axis. As the name suggests, logarithmic interpolation is used to determine where a value lies on the axis.

Configuration Options

!!!include(axes/cartesian/_common.md)!!!

!!!include(axes/_common.md)!!!

Tick Configuration

Logarithmic Axis specific options

Namespace: options.scales[scaleId].ticks

NameTypeDefaultDescription
formatobjectThe Intl.NumberFormat options used by the default label formatter

!!!include(axes/cartesian/_common_ticks.md)!!!

!!!include(axes/_common_ticks.md)!!!

Internal data format

Internally, the logarithmic scale uses numeric data.