-
public interface AxisValuesOverrider<Model extends Object>Overrides a chart’s minimum and maximum x-axis and y-axis values. This can be used with com.patrykandpatrick.vico.views.chart.BaseChartView and the com.patrykandpatrick.vico.compose.chart.Chart composable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAxisValuesOverrider.Companion
-
Method Summary
Modifier and Type Method Description FloatgetMinX(Model model)The minimum value shown on the x-axis. FloatgetMaxX(Model model)The maximum value shown on the x-axis. FloatgetMinY(Model model)The minimum value shown on the y-axis. FloatgetMaxY(Model model)The maximum value shown on the y-axis. -
-
Method Detail
-
getMinX
Float getMinX(Model model)
The minimum value shown on the x-axis. If
nullis returned, the chart will fall back to the default value.- Parameters:
model- holds data about the chart’s entries, which can be used to calculate the new minimum x-axis value.
-
getMaxX
Float getMaxX(Model model)
The maximum value shown on the x-axis. If
nullis returned, the chart will fall back to the default value.- Parameters:
model- holds data about the chart’s entries, which can be used to calculate the new maximum x-axis value.
-
getMinY
Float getMinY(Model model)
The minimum value shown on the y-axis. If
nullis returned, the chart will fall back to the default value.- Parameters:
model- holds data about the chart’s entries, which can be used to calculate the new minimum y-axis value.
-
-
-
-