Don't add a dummy data point on chart initialization (not needed, will lead to that the current price is always 0 - references #22)

This commit is contained in:
Bernd Bestel
2018-07-26 21:23:37 +02:00
parent c64eb27ca1
commit 419445f5ae

View File

@@ -75,12 +75,10 @@ Grocy.Components.ProductCard.ReInitPriceHistoryChart = function()
type: "line", type: "line",
data: { data: {
labels: [ //Date objects labels: [ //Date objects
new Date()
// Will be populated in Grocy.Components.ProductCard.Refresh // Will be populated in Grocy.Components.ProductCard.Refresh
], ],
datasets: [{ datasets: [{
data: [ data: [
0
// Will be populated in Grocy.Components.ProductCard.Refresh // Will be populated in Grocy.Components.ProductCard.Refresh
], ],
fill: false, fill: false,