Skip to content

Commit

Permalink
Merge pull request Ericsson#3544 from csordasmarton/fix_outstanding_c…
Browse files Browse the repository at this point in the history
…hart_day_resolution

[gui] Fix number of outstanding reports chart
  • Loading branch information
bruntib authored Dec 9, 2021
2 parents 100357d + 4663b09 commit ed16b5d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script>
import _ from "lodash";
import {
endOfMonth, endOfWeek, endOfYear, format, subDays, subMonths, subWeeks,
subYears
endOfMonth, endOfToday, endOfWeek, endOfYear, format, subDays, subMonths,
subWeeks, subYears
} from "date-fns";
import { Line, mixins } from "vue-chartjs";
import ChartDataLabels from "chartjs-plugin-datalabels";
Expand Down Expand Up @@ -135,7 +135,7 @@ export default {
let dateFormat = "yyyy. MMM. dd";
if (this.resolution === "days") {
const today = new Date();
const today = endOfToday();
this.dates = [ ...new Array(interval).keys() ].map(i =>
subDays(today, i));
}
Expand Down

0 comments on commit ed16b5d

Please sign in to comment.