mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 06:06:09 -06:00
[GH-ISSUE #503] Feature request: Stock Charts #388
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#388
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 @kruftindustries on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/503
Originally assigned to: @jmcnamara on GitHub.
Support for stock chart types that display High-Low-Close or Open-High-Low-Close financial data, suitable for visualizing stock prices and other data showing variation over time.
API Changes:
New enum value in
lxw_chart_type:LXW_CHART_STOCKCode Example:
#include "xlsxwriter.h"int main() {lxw_workbook *workbook = workbook_new("stock.xlsx");lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);lxw_chart *chart = workbook_add_chart(workbook, LXW_CHART_STOCK);/* add High-Low-Close series (3 series required for stock charts) */chart_add_series(chart, "=Sheet1!$A$2:$A$6", "=Sheet1!$B$2:$B$6", 0); /* High */chart_add_series(chart, "=Sheet1!$A$2:$A$6", "=Sheet1!$C$2:$C$6", 0); /* Low */chart_add_series(chart, "=Sheet1!$A$2:$A$6", "=Sheet1!$D$2:$D$6", 0); /* Close */worksheet_insert_chart(worksheet, CELL("E2"), chart);return workbook_close(workbook);}@jmcnamara commented on GitHub (Jan 12, 2026):
You are sort of spamming me by opening five feature requests in a row but anyway I'll answer as best as I can.
This is low priority. Stock charts are just a combination of different series with high-low bars. They can be constructed with the following steps:
This is basically what Excel does internally. It adds a "stock" type but that doesn't make a big difference.
@kruftindustries commented on GitHub (Jan 13, 2026):
Ready for review