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 axis type is linear. It is sutable for numeric data. The following example shows a linear axis:
The band axis type is used to display string values. Set the axis’
type property to
"band" as demonstrated in the following example to use a band axis:
You can also use custom axis types. For this, assign an array of scale configuration objects to the
extensions property. The following example demonstrates how to use a logarithmic scale with d3 plugins: