Package 

Class ChartsKt

    • Method Summary

      Modifier and Type Method Description
      final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, ChartModelProducer<Model> chartModelProducer, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, ChartScrollSpec<Model> chartScrollSpec, Boolean isZoomEnabled, AnimationSpec<Float> diffAnimationSpec, Boolean runInitialAnimation, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep) Displays a chart.
      final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, Model model, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, Boolean isHorizontalScrollEnabled, Boolean isZoomEnabled, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep) Displays a chart.
      final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, Model model, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, ChartScrollSpec<Model> chartScrollSpec, Boolean isZoomEnabled, Model oldModel, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep) Displays a chart.
      • Methods inherited from class java.lang.Object

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

      • Chart

        @Composable() final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, ChartModelProducer<Model> chartModelProducer, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, ChartScrollSpec<Model> chartScrollSpec, Boolean isZoomEnabled, AnimationSpec<Float> diffAnimationSpec, Boolean runInitialAnimation, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep)

        Displays a chart.

        Parameters:
        chart - the chart itself (excluding axes, markers, etc.).
        chartModelProducer - creates and updates the ChartEntryModel for the chart.
        modifier - the modifier to be applied to the chart.
        startAxis - the axis displayed at the start of the chart.
        topAxis - the axis displayed at the top of the chart.
        endAxis - the axis displayed at the end of the chart.
        bottomAxis - the axis displayed at the bottom of the chart.
        marker - appears when the chart is touched, highlighting the entry or entries nearest to the touch point.
        markerVisibilityChangeListener - allows for listening to marker visibility changes.
        legend - an optional legend for the chart.
        chartScrollSpec - houses scrolling-related settings.
        isZoomEnabled - whether zooming in and out is enabled.
        diffAnimationSpec - the animation spec used for difference animations.
        runInitialAnimation - whether to display an animation when the chart is created.
        fadingEdges - applies a horizontal fade to the edges of the chart area for scrollable charts.
        autoScaleUp - defines whether the content of a scrollable chart should be scaled up when the dimensions are such that, at a scale factor of 1, an empty space would be visible near the end edge of the chart.
        chartScrollState - houses information on the chart’s scroll state.
        horizontalLayout - defines how the chart’s content is positioned horizontally.
        getXStep - overrides the x step (the difference between the x values of neighboring major entries).
      • Chart

        @Deprecated(message = Use `chartScrollSpec` to enable or disable scrolling., level = DeprecationLevel.ERROR)@Composable() final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, Model model, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, Boolean isHorizontalScrollEnabled, Boolean isZoomEnabled, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep)

        Displays a chart.

        This function accepts a ChartEntryModel. For dynamic data, use the function overload that accepts a ChartModelProducer instance.

        Parameters:
        chart - the chart itself (excluding axes, markers, etc.).
        model - the ChartEntryModel for the chart.
        modifier - the modifier to be applied to the chart.
        startAxis - the axis displayed at the start of the chart.
        topAxis - the axis displayed at the top of the chart.
        endAxis - the axis displayed at the end of the chart.
        bottomAxis - the axis displayed at the bottom of the chart.
        marker - appears when the chart is touched, highlighting the entry or entries nearest to the touch point.
        markerVisibilityChangeListener - allows for listening to marker visibility changes.
        legend - an optional legend for the chart.
        isZoomEnabled - whether zooming in and out is enabled.
        fadingEdges - applies a horizontal fade to the edges of the chart area for scrollable charts.
        autoScaleUp - defines whether the content of a scrollable chart should be scaled up when the dimensions are such that, at a scale factor of 1, an empty space would be visible near the end edge of the chart.
        chartScrollState - houses information on the chart’s scroll state.
        horizontalLayout - defines how the chart’s content is positioned horizontally.
        getXStep - overrides the x step (the difference between the x values of neighboring major entries).
      • Chart

        @Composable() final static <Model extends ChartEntryModel> Unit Chart(Chart<Model> chart, Model model, Modifier modifier, AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis, Marker marker, MarkerVisibilityChangeListener markerVisibilityChangeListener, Legend legend, ChartScrollSpec<Model> chartScrollSpec, Boolean isZoomEnabled, Model oldModel, FadingEdges fadingEdges, AutoScaleUp autoScaleUp, ChartScrollState chartScrollState, HorizontalLayout horizontalLayout, Function1<Model, Float> getXStep)

        Displays a chart.

        This function accepts a ChartEntryModel. For dynamic data, use the function overload that accepts a ChartModelProducer instance.

        Parameters:
        chart - the chart itself (excluding axes, markers, etc.).
        model - the ChartEntryModel for the chart.
        modifier - the modifier to be applied to the chart.
        startAxis - the axis displayed at the start of the chart.
        topAxis - the axis displayed at the top of the chart.
        endAxis - the axis displayed at the end of the chart.
        bottomAxis - the axis displayed at the bottom of the chart.
        marker - appears when the chart is touched, highlighting the entry or entries nearest to the touch point.
        markerVisibilityChangeListener - allows for listening to marker visibility changes.
        legend - an optional legend for the chart.
        chartScrollSpec - houses scrolling-related settings.
        isZoomEnabled - whether zooming in and out is enabled.
        oldModel - the chart’s previous ChartEntryModel.
        fadingEdges - applies a horizontal fade to the edges of the chart area for scrollable charts.
        autoScaleUp - defines whether the content of a scrollable chart should be scaled up when the dimensions are such that, at a scale factor of 1, an empty space would be visible near the end edge of the chart.
        chartScrollState - houses information on the chart’s scroll state.
        horizontalLayout - defines how the chart’s content is positioned horizontally.
        getXStep - overrides the x step (the difference between the x values of neighboring major entries).