Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

feat: add basic functionality for icicle chart to display static data #165

Merged
merged 3 commits into from
Aug 7, 2019

Conversation

cguan7
Copy link
Contributor

@cguan7 cguan7 commented Aug 1, 2019

🏆 Enhancements
adds functionality for the icicle chart to have data passed in and display (static, no interactions
yet)

adds functionality for the icicle chart to have data passed in and display (static, no interactions
yet)
@cguan7 cguan7 requested a review from a team as a code owner August 1, 2019 21:47
@codecov
Copy link

codecov bot commented Aug 1, 2019

Codecov Report

Merging #165 into master will increase coverage by 2.74%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage    25.9%   28.65%   +2.74%     
==========================================
  Files           8        9       +1     
  Lines         166      178      +12     
  Branches       10       14       +4     
==========================================
+ Hits           43       51       +8     
- Misses        122      123       +1     
- Partials        1        4       +3
Impacted Files Coverage Δ
...t-icicle-event/src/utils/IcicleEventTreeHelpers.ts 66.66% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecd5744...d487d8a. Read the comment docs.

@williaster
Copy link
Contributor

do you have any screenshots?

.selectAll('*')
.remove();

const svg = d3Select(this.chartRef.current)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why you aren't using a library like @vx that plays better with react and renders visualizations/utilizes d3 more declaratively.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no good answer for that other than being not very familiar with vx... I recall seeing it in the event-flow viz if I remember correctly but didn't look too much into it. Will definitely look more into that library tomorrow in the morning!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good point! The visualization will have some animation as well and it doesn't look like vx supports it. Although we could use other react animation libraries with vx. I think given Chris's deadlines, I suggest that this is something we look into later on. I am not a big fan of how unreadable d3 either but fortunately, I don't think there is much more than what is already in this PR.

@cguan7
Copy link
Contributor Author

cguan7 commented Aug 2, 2019

Yes, I have some some screenshots! This is what it looks like currently in Storybook with the intention that it is not the final look. Since this PR was already getting a little big, I wanted to make it in a separate one:

image

Additionally, the README for this package has a screenshot of a prototype that is slightly outdated (we're still going through design, but have made some changes to spacing between icicles, etc.)

@@ -29,14 +31,41 @@ interface Props {
y: number;
};
color: (name: string) => string;
contentRenderer: () => void;
contentRenderer: (...args: any[]) => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we more more explicit on the type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khtruong khtruong merged commit 895758b into apache-superset:master Aug 7, 2019
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
…apache-superset#165)

* feat: add basic functionality for icicle chart to display static data

adds functionality for the icicle chart to have data passed in and display (static, no interactions
yet)

* feat: increase code coverage to pass check

* feat: clarify contentRenderer argument types
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants