diff --git a/assets/js/components/TargetChargePlan.story.vue b/assets/js/components/TargetChargePlan.story.vue index 2cc3d6505..7697e46e4 100644 --- a/assets/js/components/TargetChargePlan.story.vue +++ b/assets/js/components/TargetChargePlan.story.vue @@ -25,9 +25,9 @@ function createRate(price, hoursFromNow, durationHours = 1) { const co2 = { rates: [ - 545, 518, 545, 518, 213, 545, 527, 527, 536, 518, 400, 336, 336, 339, 344, 336, 336, 336, - 372, 400, 555, 555, 545, 555, 564, 545, 555, 545, 536, 545, 527, 536, 518, 545, 509, 336, - 336, 336, + 545, 518, 545, 518, 0, 545, 527, 527, 536, 518, 400, 336, 336, 339, 344, 336, 336, 336, 372, + 400, 555, 555, 545, 555, 564, 545, 555, 545, 536, 545, 527, 536, 518, 545, 509, 336, 336, + 336, ].map((price, i) => createRate(price, i)), duration: 8695, plan: [createRate(213, 4), createRate(336, 11), createRate(336, 12)], diff --git a/assets/js/components/TariffChart.vue b/assets/js/components/TariffChart.vue index 8792da204..3b8252e9c 100644 --- a/assets/js/components/TariffChart.vue +++ b/assets/js/components/TariffChart.vue @@ -89,7 +89,7 @@ export default { }, priceStyle(price) { const value = price === undefined ? this.avgPrice : price; - const height = value ? `${(100 / this.maxPrice) * value}%` : "100%"; + const height = value !== undefined ? `${5 + (95 / this.maxPrice) * value}%` : "100%"; return { height }; }, },