mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #204] Series name is ignored for chart type LXW_CHART_SCATTER #168
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#168
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 @saedelman on GitHub (Nov 9, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/204
Originally assigned to: @jmcnamara on GitHub.
The chart_series_set_name() call does nothing when the chart type is set to LXW_CHART_SCATTER or LXW_CHART_SCATTER_SMOOTH. Excel shows "Series 1", "Series 2", etc. instead of the defined name.
Looking at chart.c, the function call _chart_write_xcal_ser(...) does not call _chart_write_series_name(...). Once this is added (after _chart_write_order(..)), Excel properly reflects the name identified by the chart_series_set_name() user call.
@jmcnamara commented on GitHub (Nov 9, 2018):
Thanks.
Can you add a small, compile-able example that demonstrates the issue.
John
@saedelman commented on GitHub (Nov 9, 2018):
Sure, but just compare the _chart_write_xval_ser(...) and _chart_write_ser(...) functions, the latter function is called for everything other than scatter graphs and the _chart_write_series_name(..) is included there. It should be immediately obvious that it is missing from _chart_write_xval_ser(..) call.
@jmcnamara commented on GitHub (Nov 9, 2018):
Maybe or maybe not. I prefer to start with a sample program to make sure everyone is on the same page.
For example I created this test case:
Which creates this output:
|
Which looks okay. Is this the type of scenario that you are talking about?
@saedelman commented on GitHub (Nov 9, 2018):
It looks like I may have an older library. My output shows "Series 1" for "Apple" and "Series 2" for Pear.
@jmcnamara commented on GitHub (Nov 9, 2018):
Ok to close then?
@saedelman commented on GitHub (Nov 9, 2018):
Let me try it with the latest library for good measure and report back.
@jmcnamara commented on GitHub (Nov 15, 2018):
Closing. If you isolate an issue you can open another issue with an example.