I am trying to create a react-chartjs-2 Bar graph.
I want to keep the x axis always 0% to 100%.
Now the graph displays only the maximum % in x axis (if 80% is the x value then x axis max is set as 80)
scales: {
x: {
ticks: {
color: "white",
beginAtZero: true,
max: 100%,
},
grid: {
display: false, // Hide x grid
},
},
y: {
ticks: {
color: "white",
},
grid: {
display: false, // Hide y grid
},
},
},