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

NameTypeDescription
formatFunctionFunction to set as formatter.

Returns

Object
Reference to the LeftAxis API.
LeftAxis.hideAxisLine(on)
Hides the axis line on the axis.

Parameters

NameTypeDescription
onbooleanWhether 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

NameTypeDescription
onbooleanWhether hiding ticks is on.

Returns

Widget
Reference to the Widget's API.
LeftAxis.label(label)
Sets the Y label for the chart.

Parameters

NameTypeDescription
labelstringText 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

NameTypeDescription
valuesnumber[], string[]The values to show ticks for.

Returns

Widget
Reference to the Widget's API.