-
public final class BarChartKt
-
-
Method Summary
Modifier and Type Method Description final static UnitBarChart(List<Number> data, BarChartStyle style, XAxisLabels xAxisLabels, YAxisLabels yAxisLabels, YScale yScale, Function0<Unit> header, List<CanvasDrawable> decorations, Map<Integer, BarChartDataPointStyle> dataPointsStyles, String basicChartContentDescription, String dataSizeContentDescription, Function1<Object, Unit> onBarClicked)Composable that displays bar chart -
-
Method Detail
-
BarChart
@Composable() final static Unit BarChart(List<Number> data, BarChartStyle style, XAxisLabels xAxisLabels, YAxisLabels yAxisLabels, YScale yScale, Function0<Unit> header, List<CanvasDrawable> decorations, Map<Integer, BarChartDataPointStyle> dataPointsStyles, String basicChartContentDescription, String dataSizeContentDescription, Function1<Object, Unit> onBarClicked)
Composable that displays bar 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
dataPointsStyles-map that allows to override BarChartStyle.defaultDataPointStyle
basicChartContentDescription-part of content description when the chart as a whole is selected. Should be something like: This is bar 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
-
-
-
-