plotly / plotly/plotly.js

text only used for leaves not "branches" in treemap

Open
#6,805 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

When trying to use text attribute for treemap, only the leaves will show the designated text when textinfo = "text". The "branches", the element other than the lowest level leaf, will show labels value instead of text values.

Example:
https://codepen.io/deecay/pen/QWYVVMK

I expected treemap to replace "Eve" with "B", "Seth" with "C", etc.

What I was trying to do was, to use ids as labels and parents, and display the readable names of objects from text.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CodePen reproduction and trace treemap handling of the text attribute when textinfo is "text". Done means branch nodes display their designated text values instead of their labels, while leaf behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.