Package net.sourceforge.plantuml.chart
Class ChartTicks
java.lang.Object
net.sourceforge.plantuml.chart.ChartTicks
The ticks of the axes of a chart, and how their values are written. They depend
only on the axes, not on the way the chart is drawn: the graphic renderers and the
text one place their ticks at the same values, with the same labels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA tick: its value, its position along the axis from 0 (min) to 1 (max), and its label. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatValue(double value) A value on a value axis, or on a point label: 0.80 is written 0.8, as the automatic range gives ticks like 0, 0.8, 1.6 ...static List<ChartTicks.Tick> static List<ChartTicks.Tick> numericTicks(ChartAxis axis, Integer spacing) The ticks of a numeric h-axis (coordinate pairs, or an h-axis range): one every "spacing" when given, else about ten, starting at a multiple of the interval.static List<ChartTicks.Tick> valueTicks(ChartAxis axis) The ticks of a vertical value axis (and of the radial scale of a radar): custom ticks if defined, else ticks every "spacing", else five automatic intervals.
-
Method Details
-
valueTicks
The ticks of a vertical value axis (and of the radial scale of a radar): custom ticks if defined, else ticks every "spacing", else five automatic intervals. -
horizontalValueTicks
-
numericTicks
The ticks of a numeric h-axis (coordinate pairs, or an h-axis range): one every "spacing" when given, else about ten, starting at a multiple of the interval. They are placed by their value, as the points of the series. -
formatValue
A value on a value axis, or on a point label: 0.80 is written 0.8, as the automatic range gives ticks like 0, 0.8, 1.6 ...
-