A graph is defined by an xAxis
and yAxis
object. Each of these has the following attributes:
title
: themin
: the lowest value of the graph (defaults to 0)max
: the highest value of thegraph (defaults to 10)ticks
: the number of ticks to be shown (defaults to 5)intercept
: the value of the other graph where the two axes intersect (defaults to 0)Here’s an example in which the horizontal axis ranges from 0 to 20 with 10 ticks, and vertical axis ranges from -100 to 100 with just 5 ticks :
And here’s an example of the same graph, only the y-axis is told to intercept the x-axis at x = 10
Axis titles generally work best with “standard” layout, since the horizontal axis label is at the bottom of the graph and the vertical axis label is on the left-hand side:
Axis titles are text, but may contain LaTeX using a dollar-sign delimiter:
We’re working on developing multiple scales for opposite axes, but as of now there isn’t support for that functionality.