Closed chrismclarke closed 1 year ago
Visit the preview URL for this PR (updated for commit fec729e):
https://picsa-extension-toolkit--pr159-feat-climate-tool-up-mb13rzr6.web.app
(expires Wed, 16 Aug 2023 18:56:02 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 2435c4a5f2b9750fe5c819a7a14bcf9433816983
Description
Main Changes
Whilst running the workshop it became obvious that using the line-tool on climate charts drew some confusion going through the process of counting points above/below line and drawing conclusions. For rainfall graphs the focus is usually on exceedence (points above) but start date usually focus is on whether the season starts 'before' (points below).
Previously we have tried to just flip the colours for the specific graph, however the code to do this was quite confusing and not applied consistently when adding new graphs.
So instead this PR tries to make line and probability tools more configurable on a per-chart basis, including specific colours of points above/below, labels to apply and ordering on the page.
Additional changes
Discussion
Preview
https://picsa-extension-toolkit--pr159-feat-climate-tool-up-mb13rzr6.web.app/
Screenshots / Videos
Before - tools would typically only reference points above the line and infer conclusion (incorrectly in case of start date)
After - tools more flexible to change colours, show info for both above/below and change label relevant to context
Demo video
Chipata.webm