-
Notifications
You must be signed in to change notification settings - Fork 15.2k
feat(pivot-table-chart) -> download as pivoted excel #33569
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
base: master
Are you sure you want to change the base?
feat(pivot-table-chart) -> download as pivoted excel #33569
Conversation
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.
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Unused XLSX Import ▹ view | 🧠 Not in scope |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/utils/downloadAsPivotExcel.ts | ✅ |
superset-frontend/src/dashboard/types.ts | ✅ |
superset-frontend/src/dashboard/components/SliceHeader/index.tsx | ✅ |
superset-frontend/src/explore/components/useExploreAdditionalActionsMenu/index.jsx | ✅ |
superset-frontend/src/dashboard/components/gridComponents/Chart.jsx | ✅ |
superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
@@ -58,6 +58,8 @@ import { | |||
} from '../../util/activeDashboardFilters'; | |||
import getFormDataWithExtraFilters from '../../util/charts/getFormDataWithExtraFilters'; | |||
import { PLACEHOLDER_DATASOURCE } from '../../constants'; | |||
import * as XLSX from 'xlsx'; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There are a handful of issues related to pivot table downloads: https://github.com/search?q=repo%3Aapache%2Fsuperset+pivot+download&type=issues FYI in case you want to see if this PR addresses any of them, or could. |
Hey, @mdusmanalvi do you intend to continue the work on this? The feature works great, I can help push this through the finish line as it just needs the cleanup and tests. |
SUMMARY
Added the functionality of downloading charts as pivoted xlsx that is the the same structure will be seen in the downloaded file. This is implemented in two sections: while directly downloading charts and downloading charts from dashboards.
Library: https://www.npmjs.com/package/xlsx
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION