-
Notifications
You must be signed in to change notification settings - Fork 99
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
Tree Map chart support in event analytics #664
Comments
Hi @mengweieric, The basic implementation of the Treemap chart is as shown: OpenSearch.Dashboards.-.Google.Chrome.2022-04-20.15-31-40.1.mp4For now, we are displaying the treemap till 2 levels:
In cases where the tree map cannot be formed (if the value field is not numerical, or the label field and parent field are the same) then the 'No results found' placeholder is displayed. Inputs needed:
Thanks, |
Hey @mengweieric @btzeng -
Can you please let me know what other options we will need to add? |
Hi @mrunal-z, Thanks for the demo, it looks good. I'll work with ux for the flow to add more fields. For treemap, please go ahead to add chart styles (this is renamed from chart option) and add specific style config options like color palate to it. Thanks |
@mrunal-z Thanks for sharing the update. I will add config for treemap in opensearch-project/dashboards-observability#78 |
@mrunal-z Treemap config updated |
Hey @mengweieric @btzeng - As we had discussed, I have implemented the color theme using the plotly colorscale options and Attaching an example of how the themes get applied to both normal and nested treemaps. (see next comment for video) Currently, I have added the following palettes: Bluered, Blues, Greens, Greys, RdBu, Reds, YlGnBu, YlOrRd We can also add -
Let me know if this is what you were looking for, and if I should go ahead with adding the above as well. |
OpenSearch.Dashboards.-.Google.Chrome.2022-05-10.19-43-27.1.mp4 |
@ruchika-narang Good work on parent/child inputs as well as color theme selections. Thanks for sharing the video! |
@mrunal-z |
Hey @mengweieric , @btzeng Here is the demo video for the implementation of tiling algorithm and single color config options - Treemap_Config_Options.mp4@btzeng , as we know, the same single color selected applies to both parent and child elements.
Treemap_Single_Color_Shaded.mp4
Treemap_Multiple_Color_Selection.mp4Let me know if I should go ahead with either of these. Thanks! |
@mrunal-z Yes, let's have both. 1. auto assign a different shade of same color to parent. 2. user assign colors to child and parent. |
Hey @btzeng @mengweieric I have added both the options for color theme as shown in the following video: Treemap_Multicolor.mp4Let me know if this looks correct and if any other changes are required. Thanks! |
@mrunal-z I see in the dropdown there are 3 selections- default, single, multi. Is default random multi colors? |
@btzeng The default option applies the default plotly color palette, which assigns a random color to each value. |
This issue contains the below tasks.
The text was updated successfully, but these errors were encountered: