mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user