ChartNode.ChartAxis.XChartAxis
final class ChartNode.ChartAxis.XChartAxis
Extends: ChartAxis
Package: dev.joid.lib.ui.node.impl.chart · Module: core · Source: ChartNode.java
The X axis of a chart, which holds its labels and its series.
Learn more
Section titled “Learn more”Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| labelSet | String... | new LinkedHashSet<>() | The labels of the axis, in order; setting them replaces the previous ones. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ChartData | get(String data) | The series of this name, or null. |
Map<String,ChartData> | getDataMap() | Every series by name, in the order they were added; a read-only view. |
this | data(String dataName, ChartData data) fluent | Adds or replaces the series of this name. |
this | remove(String data) fluent | Removes the series of this name. |
Inherited from ChartNode.ChartAxis (3)
Property details
Section titled “Property details”labelSet
Section titled “labelSet”this labelSet(String... labels)fluentthis labelSet(Set<String> labelSet)fluentSet<String> getLabelSet()
Default: new LinkedHashSet<>()
The labels of the axis, in order; setting them replaces the previous ones.
Method details
Section titled “Method details”ChartData get(String data)
The series of this name, or null.
getDataMap
Section titled “getDataMap”Map<String,ChartData> getDataMap()
Every series by name, in the order they were added; a read-only view.
this data(String dataName, ChartData data) fluent
Adds or replaces the series of this name.
remove
Section titled “remove”this remove(String data) fluent
Removes the series of this name.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
