Added support for multi-level category axes#1012
Closed
MariusOpeepl wants to merge 12 commits intogitbrent:masterfrom
Closed
Added support for multi-level category axes#1012MariusOpeepl wants to merge 12 commits intogitbrent:masterfrom
MariusOpeepl wants to merge 12 commits intogitbrent:masterfrom
Conversation
- modified chart*.xml to support multiple cat axes - modified table*.xml, worksheets/sheet*.xml and sharedStrings.xml inside .xlsx to support multiple cat axes - changed chart.data.labels to be a two-dimensional array by default - added new options prop, catAxisMultiLevelLabels
Contributor
Author
|
@gitbrent is there anything else you need with this PR? |
Owner
|
Contributor
Author
On a side note, I'll remove the support for BAR3D, the chart itself doesn't make sense in multiple category layers. |
Contributor
Author
|
I added two demo slides with the charts that are in the PR desc, and I kept the BAR3D support, maybe someone does find a practical use for it with multiple category axes. |
gitbrent
approved these changes
May 22, 2022
Owner
|
Thanks @MariusOpeepl, great work! Merged via Pull #1112 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supports AREA, BAR, BAR3D and LINE type charts.
In addition to providing a two-dimentional
labelsarray in theOptsChartData, you also need to include thecatAxisMultiLevelLabelschart option.I've modified most of the XML generation to use a 2D

labelsinternally, but providing a 1D array in the chart data is still possible, it'll get converted automatically to 2D.You can also have more than two levels of category axes:
