Closed sc0ttj closed 3 years ago
This makes it easier/clearer to set up axes for a few reasons:
..on that last note, a "tickCentre" option has been added, so you can have the ticks centered next to the label, or split around it.
Usage
.xAxis({ range: [1999,2006], scale: 1, label: "Years", labelBelow: true, yPos: 0, tickLength: -3, tickCentered: true, tickLabelCentered: true, tickLabels: [], }) .yAxis({ range: [0,16], scale: 1, label: "Gold medals", labelLeft: true, xPos: 0, tickLength: -3, tickCentered: false, tickLabels: [], })
This makes it easier/clearer to set up axes for a few reasons:
..on that last note, a "tickCentre" option has been added, so you can have the ticks centered next to the label, or split around it.
Usage