-
Notifications
You must be signed in to change notification settings - Fork 274
feat(plugin-chart-echarts): add graph echart #918
feat(plugin-chart-echarts): add graph echart #918
Conversation
remaining: expose those in control panel make them all work add tests
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/superset/superset-ui-mcn5lxgmc/superset |
This is wonderful @mayurnewase !!!!! 🎉 Really looking forward to testing + reviewing! |
@villebro Should we seperate groupby field into source and target? |
Yes, please do. This has caused major confusion. @mayurnewase |
@mayurnewase yes, I'm not sure why it's been designed that way, but having separate single selects for source and target makes much more sense 👍 |
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.
Thanks for the contribution. Adding a couple of comments on code style and typing.
+1 on separating source and target control.
Very excited about this! One small detail before this gets merged is to update the thumbnail to include a pic of the force graph itself :) |
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.
This is super nice! 🎉 One last recommendation for reducing default zoom level, other than that this seems good to go after the linting errors are fixed!
import { GraphSeriesOption } from 'echarts'; | ||
|
||
export const DEFAULT_GRAPH_SERIES_OPTION: GraphSeriesOption = { | ||
zoom: 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.
[<h1 className="section-header">{t('Legend')}</h1>], | ||
[showLegendControl], | ||
[legendTypeControl, legendOrientationControl], | ||
[legendMarginControl, noopControl], |
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.
Yes, it appears to be unrelated to this PR, so better save for another PR
@mayurnewase I did some further optimization and pushed directly to your branch. Hope you don't mind. Here's a summary of the changes:
|
@@ -124,8 +124,8 @@ export interface BaseFormData extends TimeRange, FormDataResidual { | |||
groupby?: QueryFormColumn[]; | |||
all_columns?: QueryFormColumn[]; | |||
/** list of filters */ | |||
adhoc_filters?: AdhocFilter[]; | |||
extra_filters?: QueryFormExtraFilter[]; | |||
adhoc_filters?: AdhocFilter[] | null; |
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.
Looking good! @mayurnewase Thanks for all the iterations! Merging to keep your sanity! 😄 |
🏆 Enhancements
Migrated legacy force directed chart to echart
Todos
Screenshots
![Screenshot from 2021-02-06 20-27-35](https://user-images.githubusercontent.com/12967587/107121703-eed35d80-68b9-11eb-858b-3b6fe9698fe2.png)
1.Circular type
2.Force type
![Screenshot from 2021-02-06 20-29-50](https://user-images.githubusercontent.com/12967587/107121749-204c2900-68ba-11eb-9871-296251efbcdd.png)