From 419445f5ae37ef4cb4fcb4ba11fbd17193a73f4d Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 26 Jul 2018 21:23:37 +0200 Subject: [PATCH] Don't add a dummy data point on chart initialization (not needed, will lead to that the current price is always 0 - references #22) --- public/viewjs/components/productcard.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/viewjs/components/productcard.js b/public/viewjs/components/productcard.js index 6b0e7c1b..f7acfac8 100644 --- a/public/viewjs/components/productcard.js +++ b/public/viewjs/components/productcard.js @@ -75,12 +75,10 @@ Grocy.Components.ProductCard.ReInitPriceHistoryChart = function() type: "line", data: { labels: [ //Date objects - new Date() // Will be populated in Grocy.Components.ProductCard.Refresh ], datasets: [{ data: [ - 0 // Will be populated in Grocy.Components.ProductCard.Refresh ], fill: false,