mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Enhance product card chart colors for better visibility (#2794)
* Enhance product card chart colors for better visibility * Code style --------- Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
parent
c8ee47f935
commit
31185beac5
|
|
@ -165,11 +165,16 @@ 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: "HSL(" + (129 * chart.datasets.length) + ",100%,50%)",
|
||||
label: key
|
||||
borderColor: color,
|
||||
pointBackgroundColor: color,
|
||||
pointBorderColor: color,
|
||||
pointHoverBackgroundColor: color
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user