Group Bar Chart Data
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
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
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
)
})