Support for Charts
Hi it would be cool to allow the creation of charts, would be happy to work on this as well although I am new on the repo, my use case is converting mermaid charts to docx charts.
That would be awesome
Does seem possible: https://www.datypic.com/sc/ooxml/e-draw-chart_lineChart-1.html http://officeopenxml.com/drwOverview.php#:~:text=See%20textboxes%20below.-,Charts,-A%20diagram%20is
That would be awesome
Does seem possible: https://www.datypic.com/sc/ooxml/e-draw-chart_lineChart-1.html http://officeopenxml.com/drwOverview.php#:~:text=See%20textboxes%20below.-,Charts,-A%20diagram%20is
I will start with a PR for the line chart, although my needs extend beyond this. This is the following interface that I have sketched out., I would love to receive your feedback.
import { Document, Paragraph, LineChart } from "docx";
const doc = new Document({
sections: [
{
children: [
new Paragraph("Sales Over Time"),
new LineChart({
title: "Sales",
categories: ["Jan", "Feb", "Mar"],
series: [
{ name: "2024", values: [10, 20, 30] },
{ name: "2025", values: [15, 25, 35] },
],
}),
],
},
],
});
Hello, Your ideas are great and what I need, any new developments please?
Hi @botirk38 what is the status of this? Do you have a rough outline / implementation plan? Would love to assist.
Chart support in this fork: https://github.com/sunertech/docx See demos folder for example