pacificclimate / climate-explorer-frontend

6 stars 1 forks source link

Change from Baseline graph displays annual quantities when monthly are unavailable #328

Open tqmurdock opened 5 years ago

tqmurdock commented 5 years ago

On the "change from baseline" tab, there are bar plots for each month of the year for something that only exists as an annual measure.

image

jameshiebert commented 4 years ago

@rod-glover and @corviday may want to weigh in on the best way to hand this, but I would imagine that we can check the dataset metadata for whether it has monthly data and omit the bar graphs if it does not?

rod-glover commented 4 years ago

That seems entirely doable. The metadata contains a timescale property, which indicates monthly, seasonal, or yearly, and we can examine those for any given dataset. We may want to do generalize: show a given graph only according to the timescale it's available at.

tqmurdock commented 4 years ago

Yes please! Using the timescale property that already exists is perfect.

rod-glover commented 4 years ago

Show only bar charts for the given timescale, and change the time axis ticks accordingly.