Skip to content

[ENHANCEMENT] EChart: extract timezone-aware axis label formatter#190

Open
andreasgerstmayr wants to merge 2 commits into
perses:mainfrom
andreasgerstmayr:extract-axis-formatter
Open

[ENHANCEMENT] EChart: extract timezone-aware axis label formatter#190
andreasgerstmayr wants to merge 2 commits into
perses:mainfrom
andreasgerstmayr:extract-axis-formatter

Conversation

@andreasgerstmayr

@andreasgerstmayr andreasgerstmayr commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

Extract timezone-aware axis label formatter

This util is currently duplicated in the timeseries, scatter, heaptmap and statushistory charts:
https://github.com/perses/plugins/blob/39a7700a8fd33c1539a1af12b828db35bcdd91d0/timeserieschart/src/utils/timezone-formatter.ts
https://github.com/perses/plugins/blob/39a7700a8fd33c1539a1af12b828db35bcdd91d0/heatmapchart/src/utils/get-formatted-axis-label.ts
https://github.com/perses/plugins/blob/39a7700a8fd33c1539a1af12b828db35bcdd91d0/statushistorychart/src/utils/get-formatted-axis-label.ts
perses/plugins#712

Screenshots

no changes

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.
  • E2E tests are stable and unlikely to be flaky.
    See e2e docs for more details. Common issues include:
    • Is the data inconsistent? You need to mock API requests.
    • Does the time change? You need to use consistent time values or mock time utilities.
    • Does it have loading states? You need to wait for loading to complete.

This util is used by the timeseries, scatter, heaptmap and statushistory charts.

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant