8000 Fix centering multi-line headers for `treemap` traces by archmoj · Pull Request #6923 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Fix centering multi-line headers for treemap traces #6923

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 8000 GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
  • Loading branch information
archmoj committed Mar 14, 2024
commit 9075d94c16718b139a9d 8000 e0ec21c6d1c43e5240cf
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions test/image/mocks/zz-treemap_multi-line_headers.json
7576
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"data": [
{
"labels": [
"parent2",
"parent1<br>Long text on second line",
"item2",
"item1"
],
"name": "",
"parents": [
"",
"",
"parent2",
"parent1<br>Long text on second line"
],
"values": [
0,
0,
200,
500
],
"type": "treemap",
"textposition": "middle center",
"texttemplate": "<b>%{label}</b>",
"textfont": {
"size": 20
}
}
],
"layout": {
"margin": {
"t": 50,
"b": 10,
"l": 10,
"r": 10
},
"height": 200,
"width": 500
}
}
0