The axes and grid improve the visualized data’s readability: axes display series point arguments and values; the grid connects series points and axis values.
The following plugins implement the axes and grid:
Import the plugins listed above to set up a Chart with two axes and a grid.
The default scale is linear. It is suitable for numeric data. The following example shows a linear scale:
The band scale is used to process string values. Set the scale’s
factory property to
scaleBand as demonstrated in the following example to use a band scale:
You can also use custom scales. For this, assign a custom factory function to the
factory property. The following example demonstrates how to use a logarithmic scale with d3 plugins: