17.02.2024, 18:18
(16.02.2024, 07:21)admin Wrote: There's an option to use gradient fill: https://quickchart.io/documentation/refe...ient-fills
How to get the syntax right? And how to add the height options for different colors?
Code:
local params = {
type = 'bar',
data = {
labels = labels,
datasets = {
{
label = 'Price',
data = data,
backgroundColor = 'rgb(255, 99, 132)',
borderColor = 'rgb(255, 99, 132)',
backgroundColor = 'getGradientFillHelper('vertical', '#36a2eb', '#a336eb', '#eb363')',
}
}
}
}