BarChartData

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

chartData

: List of BarData

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

paddingEnd

: End Padding

paddingTop

: Top Padding

tapPadding

: Extra padding area for tapping

showXAxis

: Boolean Flag to enable/disable X axis

showYAxis

: Boolean Flag to enable/disable Y axis

accessibilityConfig

: Configs related to accessibility service defined here in AccessibilityConfig