GroupBarChartData

data class GroupBarChartData(val barPlotData: BarPlotData, val xAxisData: AxisData = AxisData.Builder().build(), val yAxisData: AxisData = AxisData.Builder().build(), val backgroundColor: Color = Color.White, val horizontalExtraSpace: Dp = 10.dp, val paddingEnd: Dp = 10.dp, val paddingTop: Dp = 0.dp, val showYAxis: Boolean = true, val showXAxis: Boolean = true, val tapPadding: Dp = 10.dp, val groupSeparatorConfig: GroupSeparatorConfig = GroupSeparatorConfig(), val accessibilityConfig: AccessibilityConfig = AccessibilityConfig(), val paddingBetweenStackedBars: Dp = 0.dp, val drawBar: (DrawScope, GroupBarChartData, BarStyle, Offset, Float, Int) -> Unit = { drawScope, barChartData, barStyle, drawOffset, height, barIndex -> //default implementation drawGroupBarGraph( drawScope, barChartData, barStyle, drawOffset, height, barPlotData.barColorPaletteList[barIndex], barIndex ) })

GroupBarGraph data class params used in drawing bar graph.

Parameters

barPlotData

: Group bar plot data.

xAxisData

: All the configurations related to X-Axis to be defined here in AxisData

yAxisData

: All the configurations related to Y-Axis to be defined here in AxisData

horizontalExtraSpace

: Extra space added in the horizontal axis.

backgroundColor

: Background color of the graph.

paddingEnd

: End Padding.

paddingTop

: Top Padding.

showXAxis

: Boolean Flag to enable/disable X axis.

showYAxis

: Boolean Flag to enable/disable Y axis.

tapPadding

: Tap padding offset.

groupSeparatorConfig

: All config related to the GroupSeparator.

accessibilityConfig

: Configs related to accessibility service defined here in AccessibilityConfig

Constructors

Link copied to clipboard
constructor(barPlotData: BarPlotData, xAxisData: AxisData = AxisData.Builder().build(), yAxisData: AxisData = AxisData.Builder().build(), backgroundColor: Color = Color.White, horizontalExtraSpace: Dp = 10.dp, paddingEnd: Dp = 10.dp, paddingTop: Dp = 0.dp, showYAxis: Boolean = true, showXAxis: Boolean = true, tapPadding: Dp = 10.dp, groupSeparatorConfig: GroupSeparatorConfig = GroupSeparatorConfig(), accessibilityConfig: AccessibilityConfig = AccessibilityConfig(), paddingBetweenStackedBars: Dp = 0.dp, drawBar: (DrawScope, GroupBarChartData, BarStyle, Offset, Float, Int) -> Unit = { drawScope, barChartData, barStyle, drawOffset, height, barIndex -> //default implementation drawGroupBarGraph( drawScope, barChartData, barStyle, drawOffset, height, barPlotData.barColorPaletteList[barIndex], barIndex ) })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val showXAxis: Boolean = true
Link copied to clipboard
val showYAxis: Boolean = true
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard