mirror of
https://github.com/grocy/grocy.git
synced 2025-10-13 00:54:38 +00:00
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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user