Logarithmic scales

Declaring the type property of an axis object as logarithmic will render its data according to a logarithmic scale. Change one of the axes of the previous example to type: 'logarithmic' and the line will become a curve, as shown as follows. It seems that the distribution of data points has improved in this visualization. They are a bit closer and the chart reveals some data that was not visible before:

Making one of the scales logarithmic improves the scatter chart, revealing hidden data Code: Numeric/numeric-2-log.html

We can improve it. Since both scales contain the same population data, we can declare the type of both ...

Get Learn Chart.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.