mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #199] Bug: Bold Chart Title and Legend #160
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#160
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 @ungakatunga on GitHub (Oct 8, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/199
Originally assigned to: @jmcnamara on GitHub.
The bold attribute of the font has no effect on the chart title and chart legend. Title and legend is always bold, there is currently no way to reset this.
@jmcnamara commented on GitHub (Oct 8, 2018):
Can you add a small, complete, working program that demonstrates the issue.
Thanks,
John
@jmcnamara commented on GitHub (Oct 8, 2018):
I created a test case for this. The Excel default is to make the title bold if no format is specified. However, you can turn it off as shown below:
Output. The first chart is the default (title is bold) and the second has it turned off.
@jmcnamara commented on GitHub (Oct 8, 2018):
So, this doesn't look like an issue to me and I'll close it if you have don't have any other follow-up.
@ungakatunga commented on GitHub (Oct 8, 2018):
hmm...
the only differences in my code to yours are:
In my generated xlsx the title is bold. Also in a second version, without the special chart style.
@RaFaeL-NN commented on GitHub (Oct 8, 2018):
It's same with https://github.com/jmcnamara/libxlsxwriter/issues/146
Try to set bold property to 2 instead of 0. It helps me
@jmcnamara commented on GitHub (Oct 8, 2018):
I found the issue. It is a bug.
You can use the workaround suggested by @RaFaeL-NN and set bold to an even non-zero number, like 2.
@ungakatunga commented on GitHub (Oct 8, 2018):
Ok, thank you two.
@jmcnamara commented on GitHub (Jul 12, 2021):
I've pushed a fix for this to main. From the updated docs:
LXW_EXPLICIT_FALSE has a value of 2, as suggested by @RaFaeL-NN.