-
Notifications
You must be signed in to change notification settings - Fork 49
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
Treemap #516
Comments
Scaffolded by @rokotyan in As I start working on this, I'm wondering how we want to support hierarchies. I see there's already some precedent for hierarchies with the from layers={[
(d: NestedDatum) => d.group,
(d: NestedDatum) => d.subgroup,
(d: NestedDatum) => d.value,
]} I suppose we would want to define a similar API for the Treemap, to match the style of the existing Unovis component. |
Interestingly, the import does actually resolve at Runtime, but the TypeScript linting system can't seem to resolve it. |
@curran The |
Thanks for having a look! After I run I have a feeling it might be related to the Webpack alias in
line 78
This resolves it in the build, but I don't see any similar alias setup within the TypeScript config in
When I follow the import link in VSCode, it resolves to a file in |
@curran have you tried building |
An interesting question arises when we compare this to nested donut - do we want the ability to label intermediate nodes? Or do we want to just label the leaf nodes? Most treemaps just label the leaf nodes, but I found this example that does: It looks like doing that introduces some extra padding, which may disconnect the actual areas of the nodes from the data values (a tradeoff of visibility vs. accuracy). What do you think? |
@curran I think this will be valuable, but it should be an optional configuration. |
Let's add a Treemap component!
This is a good reference for feature set: https://echarts.apache.org/examples/en/index.html#chart-type-treemap
The text was updated successfully, but these errors were encountered: