Bar Chart Data
constructor(chartData: List<BarData>, xAxisData: AxisData = AxisData.Builder().build(), yAxisData: AxisData = AxisData.Builder().build(), backgroundColor: Color = Color.White, horizontalExtraSpace: Dp = 0.dp, barStyle: BarStyle = BarStyle(), paddingEnd: Dp = 10.dp, paddingTop: Dp = 0.dp, tapPadding: Dp = 10.dp, showYAxis: Boolean = true, showXAxis: Boolean = true, accessibilityConfig: AccessibilityConfig = AccessibilityConfig(), barChartType: BarChartType = BarChartType.VERTICAL, drawBar: (DrawScope, BarData, Offset, Float, BarChartType, BarStyle) -> Unit = { drawScope, barChartData, drawOffset, height, barChartType, barStyle ->
//default implementation
drawBarGraph(drawScope, barChartData, drawOffset, height, barChartType, barStyle)
})
Parameters
chart Data
: List of BarData
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
padding End
: End Padding
padding Top
: Top Padding
tap Padding
: Extra padding area for tapping
show XAxis
: Boolean Flag to enable/disable X axis
show YAxis
: Boolean Flag to enable/disable Y axis
accessibility Config
: Configs related to accessibility service defined here in AccessibilityConfig