Axes are built on top of d3 scales. A lot of nivo components make use of it (Bar, Line, ScatterPlot…).
Axis position is determined by the property you use (top|right|bottom|left)Axis.
Axes are composed of ticks, you can control the way they are computed and their aspect. By default, computing which ticks are displayed is managed by the corresponding d3 scale.
You can use the tickValues
property in order to customize the displayed ticks, it accepts several forms:
every day
or every 15 minutes
, only works when using time scales.You can optionally add a legend to an axis by setting the value of the legend
property.
Legend position is controlled by two properties, legendPosition
and legendOffset
.legendPosition
must be one of: start
, middle
or end
, legendOffset
will affect y position for top and bottom axes and x position for left and right axes.