Mercurial > gemma
changeset 3288:c2d753ef5aa1
fairway_availability: sane defaults and ISC colors for diagram
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 16 May 2019 12:48:23 +0200 |
parents | 80ed54cd4210 |
children | c2cba529658d 6996aa1d2df9 |
files | client/src/components/fairway/AvailableFairwayDepth.vue client/src/store/fairwayavailability.js |
diffstat | 2 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu May 16 12:30:58 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu May 16 12:48:23 2019 +0200 @@ -521,9 +521,9 @@ }, LEGEND: app.$gettext("Sum of days"), COLORS: { - LDC: "#FF855E", - HIGHEST: "#2D84B3", - REST: ["#FF424F", "#FF737C", "#FF99A0"] + LDC: "#cdcdcd", + HIGHEST: "#3675ff", + REST: ["#ffaaaa", "#ff6c6c", "#782121"] } }; </script>
--- a/client/src/store/fairwayavailability.js Thu May 16 12:30:58 2019 +0200 +++ b/client/src/store/fairwayavailability.js Thu May 16 12:48:23 2019 +0200 @@ -13,17 +13,18 @@ */ import { HTTP } from "@/lib/http"; +import { format, subYears } from "date-fns"; const init = () => { return { type: "bottlenecks", selectedFairwayAvailabilityFeature: null, - from: null, - to: null, - frequency: null, + to: format(new Date(), "YYYY-MM-DD"), + from: format(subYears(new Date(), 1), "YYYY-MM-DD"), + frequency: "monthly", fwData: null, legend: null, - LOS: null + LOS: 3 }; };