mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 03:46:16 +02:00
Enhance product card chart colors for better visibility
This commit is contained in:
parent
6b18b0a7be
commit
6d5fdac8da
|
|
@ -165,11 +165,15 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
{
|
{
|
||||||
if (key != "_TrendlineDataset")
|
if (key != "_TrendlineDataset")
|
||||||
{
|
{
|
||||||
|
var color = "HSL(" + (129 * chart.datasets.length) + ",100%,50%)";
|
||||||
chart.datasets.push({
|
chart.datasets.push({
|
||||||
data: datasets[key],
|
data: datasets[key],
|
||||||
fill: false,
|
fill: false,
|
||||||
borderColor: "HSL(" + (129 * chart.datasets.length) + ",100%,50%)",
|
borderColor: color,
|
||||||
label: key
|
label: key,
|
||||||
|
pointBackgroundColor: color,
|
||||||
|
pointBorderColor: color,
|
||||||
|
pointHoverBackgroundColor: color
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user