-
Notifications
You must be signed in to change notification settings - Fork 35
[FEATURE] Add CSV export functionality for TimeSeriesChart plugin #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add CSV export functionality for TimeSeriesChart plugin #208
Conversation
c6120cb to
a5578cf
Compare
|
LGTM, we will wait for the v0.52.0-beta.1 release so we can include official changes and not from a snapshot |
4f3fe8c to
465e386
Compare
Signed-off-by: Erica Hinkle <ehinkle@redhat.com>
465e386 to
05c1afd
Compare
|
Tested locally with the latest Perses version, Awesome @ericahinkleRH ! |
| "color-hash": "^2.0.2", | ||
| "@perses-dev/components": "0.52.0-beta.1", | ||
| "@perses-dev/core": "0.52.0-beta.1", | ||
| "@perses-dev/plugin-system": "0.52.0-beta.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason why the perses dependency have been moved out of the peerDependencies ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #226 (comment)
…ses#208) Signed-off-by: Erica Hinkle <ehinkle@redhat.com> Signed-off-by: rafi <rafialam@appscode.com>
…ses#208) Signed-off-by: Erica Hinkle <ehinkle@redhat.com>
…ses#208) Signed-off-by: Erica Hinkle <ehinkle@redhat.com>
CSV Export Plugin for TimeSeriesChart
This PR implements the CSV export functionality for the TimeSeriesChart plugin, working in conjunction with the core changes in perses/perses to enable CSV downloads for time series data. File gets downloaded with name "panelName_data.csv".
Overview
Adds an "Export as CSV" action button to TimeSeriesChart panels that allows users to download their time series data in CSV format. The export includes proper column headers (using legend names when available) and formats timestamps in ISO 8601 format for Excel and Sheets compatibility.
Implementation Details
panelName_data.csv)Integration with Core Changes
QueryData[]from core system and converts to CSV formatFiles Added/Modified
TimeSeriesExportAction.tsx- Export button component and download logicCSVExportUtils.ts- CSV formatting and export utilitiesTimeSeriesChart.tsx- Plugin definition with export actiontime-series-chart-model.ts- Type definitions (if applicable)Testing
Dependencies
This plugin requires the core CSV export functionality implemented in perses/perses PR #3129. The dependency will be updated to use the snapshot branch once available.
Screenshots
Export Button:

File Name and Information Format:

Checklist
UI Changes