hi everyone!
I am studying about charts,
On the website I saw Chart Bar,
Can I adjust it like this?
UI chart primeReact
Hello,
Yes, of course, you can.
You have to import this code
and this code as well:
Also this video will help your issue: https://www.youtube.com/watch?v=rH14xZm ... el=ChartJS
Best
Yes, of course, you can.
You have to import this code
Code: Select all
import ChartDataLabels from 'chartjs-plugin-datalabels';
and this code as well:
Code: Select all
const config = {
type: 'bar',
options: {
scales: {
x: {
stacked: true
},
y: {
beginAtZero: true,
stacked: true
}
}
},
plugins: [ChartDataLabels]
};
// </block:config>
module.exports = {
actions: [],
config: config,
};
Best
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests