-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5752 from plotly/legendgroup-titles
Legend group titles
- Loading branch information
Showing
13 changed files
with
236 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"type": "pie", | ||
"domain": { | ||
"y": [0.8, 1] | ||
}, | ||
"labels": [0], | ||
"legendgroup": "G1" | ||
}, | ||
{ | ||
"type": "pie", | ||
"domain": { | ||
"y": [0.6, 0.8] | ||
}, | ||
"labels": [1], | ||
"legendgroup": "G1" | ||
}, | ||
{ | ||
"type": "pie", | ||
"domain": { | ||
"y": [0.4, 0.6] | ||
}, | ||
"labels": [2], | ||
"legendgroup": "G1", | ||
"legendgrouptitle": { | ||
"text": "First group" | ||
} | ||
}, | ||
{ | ||
"type": "pie", | ||
"domain": { | ||
"y": [0.2, 0.4] | ||
}, | ||
"labels": [3], | ||
"legendgroup": "G2", | ||
"legendgrouptitle": { | ||
"text": "Second group" | ||
} | ||
}, | ||
{ | ||
"domain": { | ||
"y": [0, 0.2] | ||
}, | ||
"type": "pie", | ||
"labels": [4, 5], | ||
"legendgroup": "G3", | ||
"legendgrouptitle": { | ||
"text": "Third group" | ||
} | ||
} | ||
], | ||
"layout": { | ||
"title": { | ||
"text": "legend group titles" | ||
}, | ||
"margin": { | ||
"t": 50, | ||
"b": 25, | ||
"l": 25, | ||
"r": 25 | ||
}, | ||
"width": 300, | ||
"height": 300, | ||
"legend": { | ||
"bgcolor": "lightblue", | ||
"title": { | ||
"text": "" | ||
} | ||
}, | ||
"hovermode": "x unified" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"y": [0], | ||
"legendgroup": "G1" | ||
}, | ||
{ | ||
"y": [1], | ||
"legendgroup": "G1" | ||
}, | ||
{ | ||
"y": [2], | ||
"legendgroup": "G1", | ||
"legendgrouptitle": { | ||
"text": "First group" | ||
} | ||
}, | ||
{ | ||
"y": [3], | ||
"legendgroup": "G2", | ||
"legendgrouptitle": { | ||
"text": "Second<br>group", | ||
"font": { | ||
"family": "Raleway", | ||
"size": 14 | ||
} | ||
} | ||
}, | ||
{ | ||
"y": [4], | ||
"legendgroup": "G3", | ||
"legendgrouptitle": { | ||
"text": "Third group" | ||
} | ||
}, | ||
{ | ||
"y": [5], | ||
"legendgroup": "G3" | ||
} | ||
], | ||
"layout": { | ||
"title": { | ||
"text": "legend group titles" | ||
}, | ||
"margin": { | ||
"t": 50, | ||
"b": 25, | ||
"l": 25, | ||
"r": 25 | ||
}, | ||
"width": 300, | ||
"height": 300, | ||
"yaxis": { | ||
"autorange": "reversed" | ||
}, | ||
"legend": { | ||
"bgcolor": "lightblue", | ||
"title": { | ||
"text": "" | ||
} | ||
}, | ||
"hovermode": "x unified" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters