LeftAxis
live example
Explore the API in the live example.
api reference
LeftAxis()
Component implementing the left axis for charts. When this component is available for a widget, its API is exposed via the
.leftAxis
namespace.LeftAxis.format(format)
Sets the Y tick format of the chart.
Parameters
Name | Type | Description |
---|---|---|
format | Function | Function to set as formatter. |
Returns
Object
Reference to the LeftAxis API.
LeftAxis.hideAxisLine(on)
Hides the axis line on the axis.
Parameters
Name | Type | Description |
---|---|---|
on | boolean | Whether hiding the axis line is on. |
Returns
Widget
Reference to the Widget's API.
LeftAxis.hideTicks(on)
Hides the tick lines on the axis.
Parameters
Name | Type | Description |
---|---|---|
on | boolean | Whether hiding ticks is on. |
Returns
Widget
Reference to the Widget's API.
LeftAxis.label(label)
Sets the Y label for the chart.
Parameters
Name | Type | Description |
---|---|---|
label | string | Text to set as the label. |
Returns
Object
Reference to the LeftAxis API.
LeftAxis.values(values)
Sets the Y tick values explicitly to the specified values.
Parameters
Name | Type | Description |
---|---|---|
values | number[], string[] | The values to show ticks for. |
Returns
Widget
Reference to the Widget's API.