Code style

This commit is contained in:
Bernd Bestel 2025-08-15 16:53:46 +02:00
parent 6d5fdac8da
commit 3009d1fe6d
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -166,11 +166,12 @@ Grocy.Components.ProductCard.Refresh = function(productId)
if (key != "_TrendlineDataset")
{
var color = "HSL(" + (129 * chart.datasets.length) + ",100%,50%)";
chart.datasets.push({
data: datasets[key],
label: key,
fill: false,
borderColor: color,
label: key,
pointBackgroundColor: color,
pointBorderColor: color,
pointHoverBackgroundColor: color