Skip to content

Charted ACT Health air quality data highlights 24-hour but shows 6-hour data #25

@caitelatte

Description

@caitelatte

Hello! Love this site 🙌

Whenever I load the page, the chart highlights the 24h as selected, but the data shown is actually 6 hours. This persists even after a ctrl+shift+r to clear any cache.

It looks like the 24hr button is set to selected in the HTML, but the GRAPH_HOUR_RANGE variable is set to 6 - these should be made consistent, I'm not sure which one you intended though.

                  <a
                    href="#graphs"
                    onclick="return graphHours(24, this)"
                    class="graph-selected"
                    >24hr</a
                  >
      GRAPH_HOUR_RANGE = 6; // hours: controls data range generated for graph

Happy to make a pull request given guidance on whether 6 or 24hrs should be default :)

Cheers

Caitlin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions