Not able to remove the extra space on the right of bar chart.
buddha-buktare opened this issue · 2 comments
buddha-buktare commented
lkant8 commented
@buddha-buktare show me your code snippet.
buddha-buktare commented
@buddha-buktare show me your code snippet.
val barChartData = BarChartData(
chartData = chartData,
xAxisData = xAxisData,
yAxisData = yAxisData,
backgroundColor = Color.Transparent,
barStyle = BarStyle(
barWidth = barWidth,
cornerRadius = 4.dp,
paddingBetweenBars = paddingBetweenBars,
selectionHighlightData = null,
),
paddingEnd = 0.dp,
drawBar = { drawScope, barChartData, drawOffset, height, barChartType, barStyle ->
drawCustomBarGraph(
drawScope,
barChartData,
drawOffset,
height,
barChartType,
barStyle
)
}
)
Box(
modifier = modifier,
contentAlignment = Alignment.Center,
) {
BarChart(
modifier = Modifier
.height(300.dp)
.background(Color.White),
barChartData = barChartData,
)
}