mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #147] Feature request: Plotarea options for Pie chart #120
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#120
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 @RaFaeL-NN on GitHub (Feb 10, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/147
Originally assigned to: @jmcnamara on GitHub.
No code for writing c:spPr in _chart_write_pie_plot_area. Why? I can set it in Excel runtime...

Can you add this lines of code for pie and doughnut charts too?
@jmcnamara commented on GitHub (Feb 10, 2018):
I’ll try. What is that feature called in English?
@RaFaeL-NN commented on GitHub (Feb 10, 2018):
Format Plot Area
It's same with another type of charts, no differenсe. May be, just in size of area...
@RaFaeL-NN commented on GitHub (Feb 10, 2018):
`/*
Write the <c:plotArea> element. Special handling for pie/doughnut.
*/
STATIC void
_chart_write_pie_plot_area(lxw_chart *self)
{
lxw_xml_start_tag(self->file, "c:plotArea", NULL);
/* Write the c:layout element. */
_chart_write_layout(self);
/* Write subclass chart type elements for primary and secondary axes. */
self->write_chart_type(self);
/* Write the c:spPr element for the plotarea formatting. */
_chart_write_sp_pr(self, self->plotarea_line, self->plotarea_fill,
self->plotarea_pattern);
lxw_xml_end_tag(self->file, "c:plotArea");
} `
It works
@jmcnamara commented on GitHub (Feb 11, 2018):
Yes. That feature should be supported by default. I'll add it in a later release.
@RaFaeL-NN commented on GitHub (Feb 11, 2018):
I think it's a bug. Based on docs for chart_plotarea_set_* functions, no exceptions for some type of charts
@jmcnamara commented on GitHub (Feb 11, 2018):
It is a bug of sorts.
I deliberately left out support for it because I mistakenly thought that it wasn’t supported for those types of charts.
I’ll add it back in an upcoming release once I add some tests etc.
@jmcnamara commented on GitHub (Apr 2, 2018):
Fixed on master. Thanks for the report. Closing.