Skip to content
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

Hierarchy charts - Tree Map - Data processor will work for one level ? #1660

Closed
ArunPragadeeswar007 opened this issue Aug 7, 2024 · 4 comments

Comments

@ArunPragadeeswar007
Copy link

Bug description

I am using a random color for the treemap, and I expect the tooltip color to pick the alternative color from the background. However, this approach fails because I missed converting the color code to a color object. While I found that a data pre-processor can convert the color code to a color object, it only works for the parent level. I need this functionality to apply to the children as well. I believe using adapters might solve this issue but is it possible to fix using the data pre-processor?

Example : https://codepen.io/Arunpragadeeswar/pen/QWXgPvz

Environment (if applicable)
Version : Amcharts 5
Browser : Chrome
Framework : Ember

@martynasma
Copy link
Collaborator

That is correct. DataProcessor will only process top-level of data, and will not do recursive processing.

I hope it's not a huge issue.

@ArunPragadeeswar007
Copy link
Author

@martynasma how can convert the color codes to color object for nested data ?

@martynasma
Copy link
Collaborator

You can build your own data iterator and just convert colors to Color objects via static function am5.Color.fromAny(....).

Copy link

github-actions bot commented Sep 7, 2024

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants