Comments (12)
+1
from libxlsxwriter.
+1
from libxlsxwriter.
Note, the Phase 1 features are now complete. Since there seems to be more interest in charts than in other features I've move this to the next in line feature.
It will take several months. I'll post updates as soon as there is some working code.
from libxlsxwriter.
Great!! Many thanks. If I can help in any way please let me know.
from libxlsxwriter.
+1
from libxlsxwriter.
Just a note that I have started the chart implementation. It is on a development branch called charts but it is not ready for general consumption yet.
Nevertheless, I wanted to share the first working example:
#include "xlsxwriter.h"
int main() {
lxw_workbook *workbook = new_workbook("chart_bar.xlsx");
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
int row, col;
/* Some data for the chart. */
uint8_t data[5][3] = {
{1, 2, 3},
{2, 4, 6},
{3, 6, 9},
{4, 8, 12},
{5, 10, 15}
};
/* Write the data to the worksheet. */
for (row = 0; row < 5; row++)
for (col = 0; col < 3; col++)
worksheet_write_number(worksheet, row, col, data[row][col] , NULL);
/* Create a chart object. */
lxw_chart *chart = workbook_add_chart(workbook, LXW_CHART_BAR);
/* Add two series to the chart. */
chart_add_series(chart, NULL, "Sheet1!$A$1:$A$5");
chart_add_series(chart, NULL, "Sheet1!$B$1:$B$5");
/* Position the chart in the worksheet. */
worksheet_insert_chart(worksheet, CELL("B7"), chart);
return workbook_close(workbook);
}
Which gives this output:
I'll post an update when there is something usable for testing.
from libxlsxwriter.
Sweet! It's great to see this progress on the charting!
from libxlsxwriter.
The chart work is stable now and I have moved it to the master branch in preparation for a release in the next few days.
This took a bit of work:
$ git diff master --stat
...
235 files changed, 10238 insertions(+), 583 deletions(-)
I've updated the documentation see: chart.h and the chart example.
The documentation still needs some additional work before the release but the code is well tested and useable.
Note, not all of the chart features in the Perl/Python versions are available yet. That will take some time and I will open other issues trackers to track the progress of those.
I would be good if you could try the current version on master and let me know what you think.
from libxlsxwriter.
Wow, you've been busy! This is such a cool project. Great work, I imagine it must be a little tedious for you, having done similar work a number of times before in Python/Perl/Lua
My main interest is the Lua end of things. Have you run into anyone else who has an interest in a Lua binding for libxlsxwriter?
Erik
from libxlsxwriter.
@nelson2005 I'll open up a new Feature Request issue for Lua bindings to let people know. There are a couple of people who were active on the pure Lua port who might be interested in helping out. I'm not. :-)
from libxlsxwriter.
The chart feature has been merged to master and released. I'll close this issue shortly when I open up some others to track the missing features.
from libxlsxwriter.
See #51 for additional chart features. Closing this since the basic chart functionality has been added.
from libxlsxwriter.
Related Issues (20)
- Feature Request: Add zig package HOT 1
- Broken logic in FindMINIZIP.cmake HOT 3
- Is there any way to update format without value, or update value without format? HOT 1
- Potential regression 1.1.4 -> 1.1.5: Test fails on big-endian architecture (Debian s390x) HOT 3
- errors when I compile HOT 1
- cmake errors HOT 3
- undefined reference to symbol 'deflate' , when I cross compile HOT 4
- New feature: Add signature file for VBA projects HOT 1
- Unit tests won't run when using Microsoft C compiler HOT 6
- Ability to insert a link with href HOT 2
- How do I insert a picture as embedded in a cell ? HOT 16
- OSSFuzz integration HOT 6
- Maintenance suggestion: update vendored copy of minizip library
- libxlsxwrite can only write data to tables, but not read data from tables? HOT 2
- Using this lib in for another computer language HOT 2
- Implement the $book->set_custom_color() function from the Perl library in the C library HOT 2
- Linker error when trying to use latest version with macOS project HOT 1
- File creation performance HOT 2
- Linux(CentOS6) Build Error.
- LXW_ERROR_CREATING_XLSX_FILE: error creating output xlsx file. Usually a permissions error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libxlsxwriter.