-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[SIP-6] Migrate visualizations to new directory structure. #5949
Conversation
5698c28
to
843442a
Compare
843442a
to
3cd7a92
Compare
Codecov Report
@@ Coverage Diff @@
## master #5949 +/- ##
==========================================
- Coverage 63.54% 63.48% -0.07%
==========================================
Files 393 443 +50
Lines 23654 23753 +99
Branches 2638 2638
==========================================
+ Hits 15032 15080 +48
- Misses 8609 8660 +51
Partials 13 13
Continue to review full report at Codecov.
|
b24be45
to
29859cd
Compare
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.
Overall LGMT! Thanks for make the code much .learer :) just left some nitsl
} = basicChartInput; | ||
const { | ||
dateFilter, | ||
groupby, |
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.
nit. There are some inconsistencies on the name of groupby
.In some chart, it is renamed as groupBy
. it is better to make it consistent.
colorScheme, | ||
dateTimeFormat, | ||
equalDateSize, | ||
groupby: groupBy, |
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.
Here is one case that groupby
is renamed.
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.
Good catch. Will fix this.
[VIZ_TYPES.word_cloud]: () => | ||
loadVis(import(/* webpackChunkName: "word_cloud" */ './wordcloud/WordCloud.js')), | ||
loadVis(import(/* webpackChunkName: "word_cloud" */ './wordcloud/adaptor.jsx')), |
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.
Should we also rename this to WorldCloud/adaptor.jsx
?
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.
Git does not handle changing lower/upper case of same string well. I will leave this out of this PR to avoid unexpected git error.
29859cd
to
44d19eb
Compare
44d19eb
to
5245497
Compare
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.
agree w @conglei, lgtm!
* Migrate Chord, Calendar * Migrate CountryMap * Add display name and rename Chord.jsx to Chord.js * migrate Histogram * add force-directed * migrate Heatmap * add horizon * migrate parallel coordinates * migrate partition * migrate pivot table * migrate rose * remove react-dom * migrate Sankey * migrate sunburst * migrate table * migrate treemap * migrate filterbox * migrate wordcloud * add paired t-test * fix unit test * remove renaming * rename fields
adaptor
,transformProps
andReactXXX
for each componenttransformProps
files you can easily what happen toformData
before becoming usable by the vis components. Which one are transformed. Which one are just renamed. Which one are parsed (and start to question if this is the right place where parsing should happen)This PR is getting really big so I limited to the vis that are easy to convert (almost copy-paste) and leave the one that requires more work or needs more attention for follow-up PRs.
Included in this PR
Not included
@williaster @conglei