feat: Adds Bar chart migration logic #28602
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
This PR adds the Bar chart migration logic (legacy ➡️ ECharts). Users can execute this migration using the CLI command and disable the legacy version with the VIZ_TYPE_DENYLIST configuration. Both Bar Chart (legacy) and Time-series Bar Chart (legacy) can be migrated using this command.
Note: Given that the Bar Chart (legacy) supports multiple values in the x-axis and the ECharts version supports a single value, the migration uses the first value in the x-axis and subsequent values as dimensions. For this specific case, the migrated version might look different because it will contain multiple series. Users can manually adjust the chart using a custom SQL if the old behavior is desired.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
1 - Upgrade a Bar Chart (legacy) and Time-series Bar Chart (legacy) chart using the CLI command
2 - Check the new chart
3 - Downgrade a Bar Chart (legacy) and Time-series Bar Chart (legacy) chart using the CLI command
4 - Check the legacy chart
ADDITIONAL INFORMATION