'Apexcharts set the position of data column charts
How can i remove the space between y-axis and first data column
I have the following bar chart configuration.
var options = {
series: [
{
data: [
6409469,
5125471,
4527716,
]
}
],
chart: {
height: 350,
type: "bar",
toolbar: {
show: false
}
},
plotOptions: {
bar: {
dataLabels: {
position: "center",
},
}
},
xaxis: {
categories: [
"18 - 24",
"25 - 34",
"35 - 44",
],
axisBorder: {
show: true
},
axisTicks: {
show: true,
color: "#fff",
},
},
yaxis: {
show: true,
axisBorder:{
show: true,
color: "#fff"
},
axisTicks: {
show: true,
color: "#fff"
},
}
And i want the charts like this picture
I tried OffsetX, columnWidth but it's not what i want
Thank guys!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
