Package 

Interface AxisValuesOverrider


  • 
    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.

    • Method Summary

      Modifier and Type Method Description
      Float getMinX(Model model) The minimum value shown on the x-axis.
      Float getMaxX(Model model) The maximum value shown on the x-axis.
      Float getMinY(Model model) The minimum value shown on the y-axis.
      Float getMaxY(Model model) The maximum value shown on the y-axis.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMinX

         Float getMinX(Model model)

        The minimum value shown on the x-axis. If null is 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 null is 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 null is 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.
      • getMaxY

         Float getMaxY(Model model)

        The maximum value shown on the y-axis. If null is 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 y-axis value.