mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #163] Question: How can lxw_chart_point be dynamically built? #134
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#134
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 @TitanicHispanic on GitHub (Apr 19, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/163
If one had an indeterminate number of Data Points in a Series, can a lxw_chart_point variable be set by looping through a dataset, setting data-point-specific formatting/labeling? Does it behave like an array, or is there different syntax?
I don't have example code; I'm asking if it's feasible.
@jmcnamara commented on GitHub (Apr 20, 2018):
Hi,
You could build up a dynamic array of points using something like the following:
Hope this helps.
John
@TitanicHispanic commented on GitHub (Apr 20, 2018):
This looks like exactly what I need. Love it!
Using the code you provided, I am getting this error at the calloc command and cannot compile (P.S. I'm on an x64 PC using VS2017):
@TitanicHispanic commented on GitHub (Apr 20, 2018):
Figured it out! I just had to do some casting on the calloc's and voila! Silly C++.
Thanks again!