Skip to content

Adapt chart date labels to the visible time range #1620

Open

Description

@WorstCase83

On openScale 3.1.4-oss (78), open Charts with All Days and No Aggregation and view a history spanning several years.

My chart shows 1,442 entries with x-axis labels such as 2 Nov, 24 Jun, and 12 Feb. Without the year, it’s hard to tell where I am in the timeline. Switching to Year aggregation gives me labels such as 2017, 2019, and 2021 and reduces the chart to 10 yearly entries.

Could the x-axis choose tick spacing and labels based on the visible date range? I’d like year ticks when viewing several years, then month or day labels as I zoom in. The selected aggregation would still control which measurements are plotted.

If this fits the project, I’d be happy to try an AI-assisted implementation, test it on Android with multi-year demo data, and submit a pull request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions