@neenreva
Posted
Just had fun with ChartJS myself. The docs could probably be better but I found some things you might be looking for in particular :
let myChart = new Chart("myChart", {
type: "bar",
data: { },
options: {
elements: {
bar: {
borderRadius: 'your value here',
borderSkipped: false,
}
}
}
Tooltips are a little trickier. I played with these in the console till I got what I wanted.
let myChart = new Chart("myChart", {
type: "bar",
data: { },
options: {
plugins: {
tooltip: {
callbacks: {
title: function (context) {
context = "$" + context[0].formattedValue;
return context;
},
label: function (context) {
context = "";
return context;
},
},
}
}
My code here if you want some specific references to how I handled it. Hope this helps