Group Bar Chart Data
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
)
})
Parameters
bar Plot Data
: Group bar plot data.
x Axis Data
: All the configurations related to X-Axis to be defined here in AxisData
y Axis Data
: All the configurations related to Y-Axis to be defined here in AxisData
horizontal Extra Space
: Extra space added in the horizontal axis.
background Color
: Background color of the graph.
padding End
: End Padding.
padding Top
: Top Padding.
show XAxis
: Boolean Flag to enable/disable X axis.
show YAxis
: Boolean Flag to enable/disable Y axis.
tap Padding
: Tap padding offset.
group Separator Config
: All config related to the GroupSeparator.
accessibility Config
: Configs related to accessibility service defined here in AccessibilityConfig