mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #477] Add plot_area layout customization (like in Python's xlsxwriter) #370
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dapeipa on GitHub (Mar 26, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/477
Originally assigned to: @jmcnamara on GitHub.
Description:
I would like to request the addition of functionality to customize the plot_area size and position in charts, similar to what is available in Python's xlsxwriter library. Currently, Python allows configuring the plot_area with precise layout parameters like this:
However, this feature does not seem to be exposed in libxlsxwriter's C API.
Use Case:
Being able to adjust the plot_area dimensions is useful for:
Proposed Solution:
Add a function like:
void chart_plotarea_set_layout()@jmcnamara commented on GitHub (Mar 26, 2025):
Thanks for the suggestion. I will look into it in the shorter term.
@jmcnamara commented on GitHub (Mar 28, 2025):
I've pushed an initial WIP version of this to main. It still needs some tests (mainly around chart title positing) and documentation but it is functional. You can now do something like this:
Which give output like this:
If you get a chance to try it let me know. I'll finish it off over the next few days.
@dapeipa commented on GitHub (Mar 28, 2025):
Thank you for the prompt fix! I tested the changes in my specific scenario (a chart without a title ) on Linux with LibreOffice Community Version 25.2.1.2 (X86_64) , and it works flawlessly.
@jmcnamara commented on GitHub (Mar 29, 2025):
This is upstream now in v1.2.1. Thanks for the prompt.
Closing.