Package 

Class LineChartKt

    • Method Detail

      • LineChart

        @Composable() final static Unit LineChart(List<Number> data, LineChartStyle style, XAxisLabels xAxisLabels, YAxisLabels yAxisLabels, YScale yScale, Function0<Unit> header, List<CanvasDrawable> decorations, Map<Integer, LineChartDataPointStyle> dataPointStyles, String basicChartContentDescription, String dataSizeContentDescription, Function1<Pair<Object, Object>, Unit> onPointClicked)

        Composable that displays line chart

        Parameters:
        data -
        • list of data to display

        style -
        • styling of the chart such as padding, canvasPadding, defaultDataPointStyle and axes label visibility

        xAxisLabels -
        • label of the xAxis to display. Must have the same size as data.

        yAxisLabels -
        • labels of the yAxis to display.

        yScale -
        • where the chart begins and ends on the yAxis

        header -
        • composable to display above the chart

        decorations -
        • list of decorations to draw into the chart such as com.jaikeerthick.composable_graphs.decorations.BackgroundHighlight

        dataPointStyles -
        basicChartContentDescription -
        • part of content description when the chart as a whole is selected. Should be something like: This is line chart of...

        dataSizeContentDescription -
        • part of content description when the chart as a whole is selected. Should inform the user how many records are on the chart