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:
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 axes as logarithmic, as shown as follows. Now the curve becomes a line again, the points are much closer and easier to compare, and even more hidden data is revealed:
Code: Numeric/numeric-3-log.html
The full code for these last two examples is in Numeric/numeric-2-log.html and numeric-3-log.html.