The chart's workbook is replaced with one holding the new data, so Word's "Edit Data" opens it.
The alt text's description is replaced with a description of the new data.
-
The patch checks the data against the chart's type when the document is patched: a pie chart has one series, and a
-scatter or bubble chart's series have points. Put the placeholder in the chart's alt text in Word, in "Alt Text" or
-"Edit Alt Text". A placeholder in the document's text is left as it is.
+
The patch checks the data against the chart's type when the document is patched: a pie chart has one series, a
+scatter or bubble chart's series have points, and a stock chart has prices, with opening prices and volumes if the
+template's has them. Put the placeholder in the chart's alt text in Word, in "Alt Text" or "Edit Alt Text". A
+placeholder in the document's text is left as it is.
@@ -37,14 +38,14 @@ scatter or bubble chart's series have points. Put the placeholder in the chart's
@@ -113,13 +114,13 @@ and others points, series with values have no categories, or a value, category o
Returns void
-
Throws
If the drawing isn't a chart, is a type of chart this can't patch, such as a stock chart, or has something
+
Throws
If the drawing isn't a chart, is a type of chart this can't patch, such as a surface chart, or has something
that refers to its workbook's cells other than its data, such as labels from cells, or the data isn't for the
chart's type, such as two series for a pie chart
Represents a chart in a WordprocessingML document: a column, bar, line, area, pie, doughnut, radar, scatter or bubble
-chart, drawn by Word from its data in the document's theme, as a chart made with Word's Insert Chart is. A column,
-line or area chart's series can each be drawn another way, as Word's "Combo" charts are.
+
Represents a chart in a WordprocessingML document: a column, bar, line, area, pie, doughnut, pie of pie, bar of pie,
+radar, scatter, bubble or stock chart, drawn by Word from its data in the document's theme, as a chart made with
+Word's Insert Chart is. A column, line or area chart's series can each be drawn another way, as Word's "Combo" charts
+are.
The chart is a part of its own (word/charts/chart1.xml), with its data in an embedded workbook, so Word's "Edit
Data" opens it in Excel. It sits inline with text unless floating is set, and goes in a paragraph, including in a
table, header, footer or footnote. Without a description in its altText, the chart is described for screen readers
@@ -36,7 +37,7 @@ from its data.
If there are no series or categories, a value isn't a finite number or null, a series has more values
than there are categories or an option the way it is drawn doesn't have, a pie chart has more than one series or
a pie or doughnut chart a negative value, a scatter or bubble point isn't finite numbers, a data label position
-isn't one the chart's type has, or an option is out of its range
+isn't one the chart's type has, a trendline can't be fitted to its series' values, a stock chart's high is below
+its low, a hidden legend entry isn't one of the legend's, or an option is out of its range
diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index d5ddee77f6..86113788b7 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index e676ad4d2f..520918ad02 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index 0dec43168f..3b361ad21a 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index 2f667756e4..b822562123 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -34,7 +34,7 @@ It must be paired with a corresponding BookmarkStart element with the same id.
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index aa7fbe9b52..3ef8dcb21c 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -34,7 +34,7 @@ It must be paired with a corresponding BookmarkEnd element with the same id.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 57f7fc1fa8..be9a4bbc28 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index 675555eb4c..3153393cc8 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 413b89617e..68e4839b97 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index c51cf8df3e..14b5875742 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index 1081309415..35a1704c36 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index 090deb782c..7f75aa3a67 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 1335ce7346..6f5f0ebdb5 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index 44917c0fa1..16f6d0883f 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index 0d3de4a795..936fbc5fdf 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index faa5cf35ca..741dad31d7 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index e6a4334ff7..fe9011513a 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index 73d26f24dc..a17c886597 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index a0fb693884..7613165287 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index 4b34c24cf9..8331061d6f 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -20,14 +20,14 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index 136fba5213..764ec7b125 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index 3952a336b7..b966484725 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index 5356de60f5..fbfbc4c966 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index 6319e6a863..c2ab2a6d6a 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -37,7 +37,7 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index d7117c32e4..0598d06f80 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -28,7 +28,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 8d0a2331f1..16677e08bd 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index d19c2b94e7..e25b37cfbb 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index 884f937c92..8e3d79b6b1 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index e10982d329..1bf1a92482 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index dfad6c2a9d..e96a3a539c 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index daa27602b6..821c898845 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index 4b690d8a22..2284eac7bf 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -39,7 +39,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index f6ad72415a..44311a57a1 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index 43eede94fa..471f92a46e 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index 3662472c25..2808ae6510 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index ef0efa93a2..0215e058f2 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index a2b80ff18b..e806201cec 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index 8a24a63840..f68f111ce8 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index 4b7973764d..08a7b4200f 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index 5c8cf2b7c3..92ebf40680 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index fd13e87a42..958ef0c24f 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 4c178ea29e..eeb2dfff22 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index 41fe8e1caa..e8c10d6bf5 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index 222f8b1f7e..3aa5571141 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index 0ac48482b5..b35ea8e64c 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index 371236c431..a494db150f 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index 34e8456214..e801596eea 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index ed2227ba73..81b867697e 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index 50c34a39d4..6e153b62bd 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index 5dbf4081eb..59436a5966 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index 7a5b4a6399..6484ba3ee1 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index f52cea0054..37c179be0e 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index c206eba760..0d2b400e0d 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageReference.html b/api/classes/index.PageReference.html
index 1bdb6da0d9..655e1105ed 100644
--- a/api/classes/index.PageReference.html
+++ b/api/classes/index.PageReference.html
@@ -31,7 +31,7 @@ the specified bookmark, useful for cross-references like "see page 5".
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 6a71737e51..a84f85b96f 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index a7150c9266..73da7e855a 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index 6d0b28907f..dfd2be5dae 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index fc02a6494d..d1b41a1731 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index 2cf3d341fc..e222f433ea 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index 993ac0fa11..f48b996888 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index 09888c53bc..4400879f57 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index bf50d775fe..3804a31241 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index 5cb0ec7575..94d39d0512 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -40,7 +40,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 80a99ee5ca..2ead700220 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index 638f4fce1b..bc9f79e4c9 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index 5628b20edd..34953ec569 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index 0ff7a3bf2e..15689e92d6 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index aa6120ba4f..61fef8f42b 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index 166146ebdf..1abce651a4 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index a5dc209e4c..e56dd41f90 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index 244c3d6f83..a49dd28de1 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index fab37ca976..1601f89b5b 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableOfContents.html b/api/classes/index.TableOfContents.html
index 44a9233ba1..d28c246b4a 100644
--- a/api/classes/index.TableOfContents.html
+++ b/api/classes/index.TableOfContents.html
@@ -36,7 +36,7 @@ with page numbers. It uses a TOC field code to generate entries.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index ee937d74ac..06dd23280f 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -36,7 +36,7 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index 3bd76ce73c..0880bdb6cc 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index 882b6ce846..580db5d0fe 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index fc344cabc7..a2023bee5b 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index ddb07eaa93..be91fd04be 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index b53f826a69..da4eb39063 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index 864fa854f5..274504aaae 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -129,7 +129,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index 25d0c3e178..e726cd91c7 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index 1da65d8fbd..2d16f6efb2 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index 2e6019f302..a8a70eb4cb 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index ea0f26716f..aa6ffe3f02 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index 035ecc8cc1..21ceb1d640 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index ae81edd32b..73ccad57a8 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -36,7 +36,7 @@ of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index 5fd1e6c8e6..e4a8bdc14f 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index f4c875cf29..756da7b9f2 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 30aa64019f..8401255b92 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index f93752e2fa..3cd239f63d 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index 85f60d78a6..35a413e429 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index 3cae87c0b3..37892cb100 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index 7cce25c4f3..ab326c2fea 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index cc47f7e1fb..62fa1b99d5 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index 05047681fc..bc36a002d3 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 14d7b469bd..331524b1e0 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index f1a565e57d..ff62c289cd 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index d00897df3b..092a0ae3ba 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index 46e41b5631..32ea9fd7d6 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index f3c4c24ba1..f4c8fed99a 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index c0f8ee33d0..2b7bacd1f1 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index 8daf4f0df6..9ad94935e0 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index a77e571f3e..e030d33f2d 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index 597bcff49f..3ac6929ae5 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index 783cc1a64e..f93da5038b 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index 72483ce861..d5dab9a6fa 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index 5acf378a3d..282da44d4f 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index cd9808065b..04533bf9fa 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
The categories along the chart's category axis, in order. If they are all numbers, they are written as numbers.
-If they are all dates, the axis is a date axis, which spaces them by date
+If they are all dates, the axis is a date axis, which spaces them by date. Groups of categories, such as quarters
+in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index c5ad9c7e1c..fb154b93c3 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index 7a93d71cda..448b3f685f 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
A group of categories, such as the quarters of a year, labelled below them on the category axis. A group holds
+categories, or groups of its own, such as the months of each quarter of each year.
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
The new data of a chart in a template: categories and each series' values, for a scatter or bubble chart each
+series' points, or for a stock chart its prices.
The label's text, in place of the value, category or series' name, such as "Record high". Each line of the text is
+a line of the label. A label with text shows nothing else
Entries to leave out of the legend, by their text: a series' name, a trendline's name, or on a pie or doughnut
+chart, a category. The series stays in the chart
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index 41d68ab047..ce2343e9c2 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
The label of one bar or point, over its series' labels: its own text, or what it shows, where it is, its number
+format and its font. Anything left out is as the series' labels have it.
A trendline: a line fitted to a series' values, which shows their trend, and can extend it forward or backward as a
+forecast. It is drawn as a dotted line in the series' colour, and has an entry in the legend.
Shows the trendline's equation on the chart, such as "y = 2.5x + 4". Default is false. Not for moving averages
+
+
+
OptionalReadonlyforecastBackward
+
forecastBackward?:number
+
Extends the trendline before the first point by this many categories, or on a scatter or bubble chart, this much
+along the x axis. Default is 0. Not for moving averages
+
+
+
OptionalReadonlyforecastForward
+
forecastForward?:number
+
Extends the trendline past the last point by this many categories, or on a scatter or bubble chart, this much along
+the x axis. Default is 0. Not for moving averages
+
+
+
OptionalReadonlyintercept
+
intercept?:number
+
Where the trendline crosses the vertical axis: its value where x is 0. Default is where the values put it. Only for
+linear, exponential and polynomial trendlines, and above 0 for exponential ones
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index a5e00b6453..dab4227afc 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index f0225cc6d7..89da597ba4 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
Pulls the slices out from the centre, by a percentage of the radius from 0 to 400: one amount for every slice, or
+one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
Options of pie of pie and bar of pie charts: a pie with some of its slices taken out, and drawn beside it as a
+second pie or a stacked bar, joined to the slice of the pie that stands for them.
+
+
+
Type Declaration
+
+
+
OptionalReadonlygapWidth?: number
+
The gap between the pie and the second plot, as a percentage of the second plot's width, from 0 to 500. Default is 100
+
+
+
OptionalReadonlysecondPlotSize?: number
+
The size of the second plot, as a percentage of the pie's, from 5 to 200. Default is 75
The chart's alt text description. Default is a description of the chart from its new data, and none for a
+decorative chart. An empty description removes it
A stock chart (c:stockChart): each category's high and low prices joined by a line, with its closing price, and if
+given, its opening price and the volume traded, as Word's "High-Low-Close", "Open-High-Low-Close",
+"Volume-High-Low-Close" and "Volume-Open-High-Low-Close" charts. Each price list has one value for each category, in
+order, and null leaves a gap.
The categories, such as trading days, in order. Dates are spaced evenly, one for each category, so days without
+trading, such as weekends, leave no gaps
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index f272f54446..8e196e930c 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index 634f89af26..4be96f739d 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index fca530aed4..205d756c5a 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index 2cfbe2ba47..28ddf60df2 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index 4db18af575..d4d32506bd 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index 8a2943698e..6d9307ad70 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -140,117 +140,117 @@ including font, size, bold, italic, underline, color, and other character format
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index e5ee41d2a4..198fb809d4 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -22,7 +22,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index 27a47b104f..63a626d57a 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -74,64 +74,64 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index 2a682dca5f..02d9f9a311 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index 78915f9476..034696bfb0 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index 7bd4b20ef8..694a57eb17 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index bda77a1a6c..696b072089 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index f3d50286ba..fd03f30119 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index 57d0bd27ca..0d7c0170c9 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index 5f3ff8b678..f6bd67006c 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index 04b081c23d..36e403b5b6 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index 4e7d944d6c..5cece32009 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index c43392b117..05c073f370 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -60,7 +60,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index 9982d784df..79d18d75ed 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index c99c63833a..f268334de3 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index e16d1ff1f3..c289acd0af 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -46,7 +46,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index 1856124d56..5e59ceea6e 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 678c35f788..6cea9ea536 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 1f38cffe89..3666371ffb 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index 28dd59568b..5a8bf48c9c 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index 192cf046a3..252fd35878 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index 984c6ccb48..7657a5beeb 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index 79278aee8f..90a9001f75 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index b1888c3036..9f63fdc80f 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index dec4feb658..4772e7d2b5 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index 7740f357cb..fc48096357 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index b7de2d3387..d64d9bad4b 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index 2a0d24055c..6f196dcbbe 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index fe9f4c5ad4..143e954dd8 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index 2992067edf..53651b68b7 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index 00f9976a8b..a524128e77 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index 6cd2841004..b9d81c3369 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index 715c82a4e2..df9e63dd5d 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index 36a93e1230..968ffbd423 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index 5c841bce30..f315d150b0 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index 6c80bffbe2..714a998846 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.PatchType.html b/api/variables/index.PatchType.html
index 8d6de34386..86d79c9384 100644
--- a/api/variables/index.PatchType.html
+++ b/api/variables/index.PatchType.html
@@ -35,7 +35,7 @@ in Word. See
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index ca7758c31a..1c770cbf09 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index b9b2467380..7819fb64c6 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index 67fee1c234..7e40e6bd60 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index 1fff5c50b7..279cbc7d15 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index 878b3149ba..5277a862e7 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index 2b9f1b555d..f9545e8e7b 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index a7f8bc9251..b96c4391eb 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/usage/chart-axes.md b/usage/chart-axes.md
index fb2500384f..6fe5125bb9 100644
--- a/usage/chart-axes.md
+++ b/usage/chart-axes.md
@@ -100,6 +100,8 @@ The dates are spaced by days, months or years, as Excel chooses:
`numberFormat` labels them in another format, such as `categoryAxis: { numberFormat: "mmm" }` for Jan, Feb and so on.
+A [stock chart](usage/chart-stock.md)'s dates are spaced evenly instead, one for each category, so days without trading leave no gaps.
+
Dates are read in UTC, as `docx` writes every date, so `new Date("2025-01-31")` is 31 January 2025. Use `new Date(Date.UTC(2025, 0, 31))` to make a date from its year, month and day.
## Reverse Order
diff --git a/usage/chart-bubble.md b/usage/chart-bubble.md
index 80f62d1d03..dc7cd62fe3 100644
--- a/usage/chart-bubble.md
+++ b/usage/chart-bubble.md
@@ -51,19 +51,19 @@ See [Chart Data Labels](usage/chart-data-labels.md).
## Options
-| Property | Type | Notes | Description |
-| ---------------- | ------------------------ | -------- | ----------------------------------------------------------------------------------------------------------- |
-| `type` | `"bubble"` | Required | |
-| `series` | `BubbleChartSeries[]` | Required | `{ name, points, color?, dataLabels? }`, where a point is `{ x, y, size }` |
-| `bubbleScale` | `number` | Optional | The bubbles' size, as a percentage of Office's, from 0 to 300. Default `100` |
-| `sizeRepresents` | `"area"` \| `"width"` | Optional | Whether a size is a bubble's area or width. Default `"area"` |
-| `xAxis` | `ChartValueAxis` | Optional | The horizontal axis. See [Chart Axes](usage/chart-axes.md) |
-| `yAxis` | `ChartValueAxis` | Optional | The vertical axis. See [Chart Axes](usage/chart-axes.md) |
-| `dataLabels` | `BubbleChartDataLabels` | Optional | `{ value?, category?, seriesName?, bubbleSize?, ... }`. See [Chart Data Labels](usage/chart-data-labels.md) |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| Property | Type | Notes | Description |
+| ---------------- | ------------------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"bubble"` | Required | |
+| `series` | `BubbleChartSeries[]` | Required | `{ name, points, color?, dataLabels?, pointLabels?, trendlines?, xErrorBars?, yErrorBars? }`, where a point is `{ x, y, size }`. See [Chart Data Labels](usage/chart-data-labels.md#labels-of-single-points) and [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md) |
+| `bubbleScale` | `number` | Optional | The bubbles' size, as a percentage of Office's, from 0 to 300. Default `100` |
+| `sizeRepresents` | `"area"` \| `"width"` | Optional | Whether a size is a bubble's area or width. Default `"area"` |
+| `xAxis` | `ChartValueAxis` | Optional | The horizontal axis. See [Chart Axes](usage/chart-axes.md) |
+| `yAxis` | `ChartValueAxis` | Optional | The vertical axis. See [Chart Axes](usage/chart-axes.md) |
+| `dataLabels` | `BubbleChartDataLabels` | Optional | `{ value?, category?, seriesName?, bubbleSize?, ... }`. See [Chart Data Labels](usage/chart-data-labels.md) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
[Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
diff --git a/usage/chart-column-and-bar.md b/usage/chart-column-and-bar.md
index 0574ca4919..efd98e3df8 100644
--- a/usage/chart-column-and-bar.md
+++ b/usage/chart-column-and-bar.md
@@ -109,36 +109,41 @@ A column chart's series can be drawn as lines or areas too, such as a target lin
These are all the options of a column or bar chart. Each links to the page that explains it.
-| Property | Type | Notes | Description |
-| -------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------ |
-| `type` | `"column"` \| `"bar"` | Required | Vertical or horizontal bars |
-| `categories` | `(string \| number \| Date)[]` | Required | The categories, in order. See [Chart Data](usage/chart-data.md) |
-| `series` | `ChartSeries[]` | Required | `{ name, values, color?, ... }`, with a value or `null` for each category. See [Series](#series) |
-| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | See [Stacking](#stacking). Default `"none"` |
-| `gapWidth` | `number` | Optional | The space between groups of bars, from 0 to 500. See [Spacing](#spacing) |
-| `overlap` | `number` | Optional | How much the bars in a group overlap, from -100 to 100. See [Spacing](#spacing) |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `categoryAxis` | `ChartAxis` | Optional | The axis of categories. See [Chart Axes](usage/chart-axes.md) |
-| `valueAxis` | `ChartValueAxis` | Optional | The axis of values. See [Chart Axes](usage/chart-axes.md) |
-| `secondaryValueAxis` | `ChartValueAxis` | Optional | A second axis of values. See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
-| `font` | `ChartFont` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `chartArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `plotArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `decorative` | `boolean` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
+| Property | Type | Notes | Description |
+| -------------------- | -------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"column"` \| `"bar"` | Required | Vertical or horizontal bars |
+| `categories` | `(string \| number \| Date)[]` \| `ChartCategoryGroup[]` | Required | The categories, in order, or [in groups](usage/chart-data.md#categories-in-groups). See [Chart Data](usage/chart-data.md) |
+| `series` | `ChartSeries[]` | Required | `{ name, values, color?, ... }`, with a value or `null` for each category. See [Series](#series) |
+| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | See [Stacking](#stacking). Default `"none"` |
+| `gapWidth` | `number` | Optional | The space between groups of bars, from 0 to 500. See [Spacing](#spacing) |
+| `overlap` | `number` | Optional | How much the bars in a group overlap, from -100 to 100. See [Spacing](#spacing) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `categoryAxis` | `ChartAxis` | Optional | The axis of categories. See [Chart Axes](usage/chart-axes.md) |
+| `valueAxis` | `ChartValueAxis` | Optional | The axis of values. See [Chart Axes](usage/chart-axes.md) |
+| `secondaryValueAxis` | `ChartValueAxis` | Optional | A second axis of values. See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
+| `emptyValues` | `"gap"` \| `"zero"` \| `"connect"` | Optional | How `null` is drawn. Default `"gap"`. See [Empty Values](usage/chart-line-and-area.md#empty-values) |
+| `dataTable` | `boolean` \| `ChartDataTable` | Optional | A table of the data. See [Chart Titles and Legends](usage/chart-titles-and-legends.md#a-data-table) |
+| `font` | `ChartFont` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `chartArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `plotArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `decorative` | `boolean` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
### Series
-| Property | Type | Notes | Description |
-| ------------ | --------------------------------------- | -------- | ---------------------------------------------------------------------------------------------- |
-| `name` | `string` | Required | The series' name, shown in the legend |
-| `values` | `(number \| null)[]` | Required | A value for each category, or `null` for a gap |
-| `color` | `string` \| `ThemeColor` | Optional | See [Chart Colours](usage/chart-colors.md) |
-| `colors` | `(string \| ThemeColor \| undefined)[]` | Optional | A colour for each bar. See [Bar Colours](#bar-colours) |
-| `dataLabels` | `false` \| `ChartDataLabels` | Optional | The series' own labels. See [Chart Data Labels](usage/chart-data-labels.md#each-series-labels) |
-| `type` | `"column"` \| `"line"` \| `"area"` | Optional | Column charts: draws the series another way. See [Combo Charts](usage/chart-combo.md) |
-| `axis` | `"primary"` \| `"secondary"` | Optional | See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| Property | Type | Notes | Description |
+| ------------- | ------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------- |
+| `name` | `string` | Required | The series' name, shown in the legend |
+| `values` | `(number \| null)[]` | Required | A value for each category, or `null` for a gap |
+| `color` | `string` \| `ThemeColor` | Optional | See [Chart Colours](usage/chart-colors.md) |
+| `colors` | `(string \| ThemeColor \| undefined)[]` | Optional | A colour for each bar. See [Bar Colours](#bar-colours) |
+| `dataLabels` | `false` \| `ChartDataLabels` | Optional | The series' own labels. See [Chart Data Labels](usage/chart-data-labels.md#each-series-labels) |
+| `type` | `"column"` \| `"line"` \| `"area"` | Optional | Column charts: draws the series another way. See [Combo Charts](usage/chart-combo.md) |
+| `axis` | `"primary"` \| `"secondary"` | Optional | See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| `pointLabels` | `(false \| ChartPointLabel \| undefined)[]` | Optional | Labels of single bars. See [Chart Data Labels](usage/chart-data-labels.md#labels-of-single-points) |
+| `trendlines` | `ChartTrendline[]` | Optional | Not for stacked series. See [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md) |
+| `errorBars` | `ChartErrorBars` | Optional | See [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md#error-bars) |
diff --git a/usage/chart-compatibility.md b/usage/chart-compatibility.md
index 8e193c596d..0c270e7bce 100644
--- a/usage/chart-compatibility.md
+++ b/usage/chart-compatibility.md
@@ -23,6 +23,10 @@ LibreOffice (checked with version 26.8) draws every chart as intended, and opens
- It draws a logarithmic axis in base 10, whatever its `logarithmicBase`.
- It draws bubbles' sizes as their areas, even with `sizeRepresents: "width"`.
- It doesn't show a bubble's size in its label.
+- It splits a pie of pie or bar of pie chart only by position. With a `split` by value, percentage or categories, it splits off the last two categories.
+- It draws a stock chart's closing price as a tick to the right of its line, and shows only the closing price and volumes in the legend.
+- It doesn't draw a bubble chart's trendlines or error bars.
+- It writes a trendline's equation and R² value in full, whatever the trendline's `label.numberFormat`.
## Apple Pages
@@ -41,9 +45,15 @@ Apple Pages (checked with version 15.1) draws the charts, but:
- It draws a logarithmic axis in base 10, whatever its `logarithmicBase`.
- It names an axis' `displayUnits`, but writes its labels in them only when the axis has a `numberFormat` other than `"General"`, such as `"#,##0"`.
- It draws `"x"`, `"star"`, `"plus"`, `"dash"` and `"dot"` markers as circles.
+- It draws a stock chart's prices as lines, and doesn't draw them at all when the chart has volumes.
+- It draws a pie of pie or bar of pie chart as a plain pie.
+- It shows only the groups' names of categories in groups.
+- It doesn't draw a data table, or show a label's own `text`.
+- It shows the legend entries in `hiddenEntries`, and a trendline's entry only when it has a `name`.
+- It draws every empty value as a gap, whatever the chart's `emptyValues`.
## Templates
`patchDocument` adds charts to any template, such as one saved by Word, as it adds them to a new `Document`: see [In Templates](usage/chart-size-and-position.md#in-templates). The new ones are numbered after the charts the template has already.
-`ChartDataPatch` gives the template's own charts new data, whether Word, LibreOffice or `docx` made them: see [Charts in Templates](usage/chart-templates.md). LibreOffice and Pages draw the new data from the chart's caches, and Word until **Edit Data**, when it reads the new workbook, which holds the same data.
+`ChartDataPatch` gives the template's own charts new data, whether Word, LibreOffice or `docx` made them, including stock charts and categories in groups: see [Charts in Templates](usage/chart-templates.md). LibreOffice and Pages draw the new data from the chart's caches, and Word until **Edit Data**, when it reads the new workbook, which holds the same data.
diff --git a/usage/chart-data-labels.md b/usage/chart-data-labels.md
index 6cb8ab57d0..f3040daf18 100644
--- a/usage/chart-data-labels.md
+++ b/usage/chart-data-labels.md
@@ -89,6 +89,45 @@ new ChartRun({
Here only the 2025 columns have labels.
+## Labels of Single Points
+
+A series' `pointLabels` give single bars, points or slices labels of their own, such as to mark the highest point, in the order of the categories, or of a scatter or bubble chart's points:
+
+```ts
+new ChartRun({
+ type: "line",
+ categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
+ series: [
+ {
+ name: "Visitors",
+ values: [320, 410, 380, 380, 460, 610, 580],
+ pointLabels: [undefined, undefined, undefined, undefined, undefined, { text: "Record", position: "above" }],
+ },
+ ],
+});
+```
+
+Each point's label is one of:
+
+- `undefined`: the series' own labels, if it has any;
+- `false`: no label, even when the series has labels;
+- a label's options: what it shows, or `text` of its own, over the series' labels.
+
+A point's label has the options of the series' labels, and each it leaves out is the series' label's:
+
+```ts
+// Only the last column has a label, with its value
+pointLabels: [undefined, undefined, undefined, { value: true }],
+
+// Every column shows its value, and the first shows it inside, in bold
+dataLabels: { value: true },
+series: [{ name: "Sales", values: [120, 135, 150, 170], pointLabels: [{ position: "insideEnd", font: { bold: true } }] }],
+```
+
+`text` replaces what the label shows with text of its own, a line of the label for each line of the text. A label with text shows nothing else, so it has no `value`, `category`, `seriesName`, `percentage`, `bubbleSize` or `numberFormat`.
+
+A series can't have more point labels than it has points. Pages doesn't show a label's own text. See [Chart Compatibility](usage/chart-compatibility.md).
+
## Options
| Property | Type | Notes | Description |
@@ -101,3 +140,9 @@ Here only the 2025 columns have labels.
| `position` | `ChartDataLabelPosition` | Optional | Where the labels go. See [Where the Labels Go](#where-the-labels-go) |
| `numberFormat` | `string` | Optional | An Excel number format, such as `"#,##0"`. Default is the values' own |
| `font` | `ChartFont` | Optional | The labels' font. Default 9 points |
+
+A point's label, in `pointLabels`, has these options too, and `text`:
+
+| Property | Type | Notes | Description |
+| -------- | -------- | -------- | --------------------------------------------------------- |
+| `text` | `string` | Optional | Text of its own, shown in place of anything else it shows |
diff --git a/usage/chart-data.md b/usage/chart-data.md
index fa5dfdf46b..0aab35b7a2 100644
--- a/usage/chart-data.md
+++ b/usage/chart-data.md
@@ -43,6 +43,28 @@ categories: [new Date("2025-01-01"), new Date("2025-02-01"), new Date("2025-05-0
The categories have to be all dates or none. Dates are read in UTC. See [Dates](usage/chart-axes.md#dates) on the axes page.
+## Categories in Groups
+
+A column, bar, line or area chart's categories can be in groups, such as quarters in years. The axis labels the categories, with each group's name below its categories:
+
+```ts
+new ChartRun({
+ type: "column",
+ title: "Sales by quarter",
+ categories: [
+ { name: "2024", categories: ["Q1", "Q2", "Q3", "Q4"] },
+ { name: "2025", categories: ["Q1", "Q2"] },
+ ],
+ series: [{ name: "Sales", values: [120, 135, 150, 170, 160, 180] }],
+});
+```
+
+- Each group has a `name` and its `categories`, text or numbers. The series have a value for each category in every group, in order: here, six.
+- A group can hold groups instead, such as months in quarters in years, for another row of labels. Every group at the same depth holds groups as deep, so each category has as many groups.
+- A group has at least one category. Categories in groups can't be dates.
+
+Pages shows only the groups' names. See [Chart Compatibility](usage/chart-compatibility.md).
+
## Points
A [scatter chart](usage/chart-scatter.md) has no categories. Each of its series has `points`, and each point has its own `x` and `y`:
@@ -68,7 +90,10 @@ Each chart's data is saved twice: in the chart, which Word draws it from, and in
The workbook has one sheet, laid out as Word lays out a new chart's data:
- For a chart with categories, the sheet is the table above: the series' names in row 1 from column B, the categories in column A from row 2, and each series' values below its name.
+- Categories in groups take a column each for the groups and the categories, from column A, the outermost groups first. A group's name is in the row of its first category. The series start in the column after them.
+- A stock chart's series are in Word's order: the volumes, the opening, high and low prices, and the closing prices, those given.
- For a scatter chart, each series has two columns: `X` above its x values, and its name above its y values. A bubble chart's series have a third, `Size`, above their sizes.
+- Custom error bars' lengths are in columns after the series: each series' `(+)` and `(-)` lengths, or for a scatter or bubble chart, its `x` and then its `y` lengths. See [Custom Error Bars](usage/chart-trendlines-and-error-bars.md#custom-error-bars).
- Dates are numbers in the sheet, in a date format, as Excel keeps them.
## Mistakes
@@ -77,6 +102,7 @@ The workbook has one sheet, laid out as Word lays out a new chart's data:
- a chart has no series, or no categories;
- a category isn't text or a finite number, or only some of the categories are dates;
+- only some of the categories are groups, a group has no categories, or groups at the same depth aren't as deep as each other;
- a value isn't a finite number or `null`;
- a series has more values than there are categories;
- a pie chart has more than one series;
@@ -85,7 +111,13 @@ The workbook has one sheet, laid out as Word lays out a new chart's data:
- a scatter or bubble series has no points, a point's `x` or `y` isn't a finite number, or a bubble's `size` is negative;
- a series has an option the way it is drawn doesn't have, such as `markers` on columns, or a `type` on a bar chart;
- every series is on the secondary axis;
-- a data label `position` isn't one the chart has;
+- a data label `position` isn't one the chart has, or a label with `text` shows something else too;
+- a series has more `pointLabels`, `explosion`s or custom error bar lengths than it has points;
+- a trendline has an option its type doesn't have, or can't be fitted to the series' values, such as an exponential trendline to a value of 0;
+- a stacked series has a trendline;
+- a stock chart's high is below its low, its open or close isn't between them, or it has no high, low or close prices;
+- a legend's `hiddenEntries` has text that isn't one of the legend's entries;
+- a pie of pie's `split` picks categories the chart doesn't have;
- an option is outside its range, such as `gapWidth: 600`, or a value axis' `minimum` isn't less than its `maximum`;
- the chart's width or height isn't a positive number.
diff --git a/usage/chart-line-and-area.md b/usage/chart-line-and-area.md
index e458685cf0..e1320333c6 100644
--- a/usage/chart-line-and-area.md
+++ b/usage/chart-line-and-area.md
@@ -20,6 +20,23 @@ new ChartRun({
A `null` value leaves a gap in its line.
+## Empty Values
+
+`emptyValues` says how a `null` value is drawn, as Word's "Hidden and Empty Cells" does:
+
+| `emptyValues` | Draws a `null` as |
+| ----------------- | -------------------------------------------------------------------- |
+| `"gap"` (default) | A gap: a break in the line, or no column |
+| `"zero"` | Zero |
+| `"connect"` | Nothing, with the line joined from the point before to the one after |
+
+```ts
+series: [{ name: "Visitors", values: [320, 410, null, 380, 460] }],
+emptyValues: "connect",
+```
+
+Column, bar, line, area, radar and stock charts take `emptyValues`. Only lines are joined: a column chart's `"connect"` is a gap. Pages draws every empty value as a gap. See [Chart Compatibility](usage/chart-compatibility.md).
+
## Markers
`markers: true` draws a circle at each point, as Word's "Line with Markers" does. There are no markers by default.
@@ -122,38 +139,43 @@ A line or area chart's series can be drawn as columns too, and against a second
These are all the options of a line or area chart. Each links to the page that explains it.
-| Property | Type | Notes | Description |
-| -------------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------ |
-| `type` | `"line"` \| `"area"` | Required | Lines, or filled areas |
-| `categories` | `(string \| number \| Date)[]` | Required | The categories, in order. See [Chart Data](usage/chart-data.md) |
-| `series` | `ChartSeries[]` | Required | `{ name, values, color?, ... }`, with a value or `null` for each category. See [Series](#series) |
-| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | See [Stacking](#stacking). Default `"none"` |
-| `markers` | `boolean` \| `ChartMarker` | Optional | Line charts: a marker at each point. Default `false`. See [Markers](#markers) |
-| `smooth` | `boolean` | Optional | Line charts: curved lines. Default `false` |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `categoryAxis` | `ChartAxis` | Optional | The axis of categories. See [Chart Axes](usage/chart-axes.md) |
-| `valueAxis` | `ChartValueAxis` | Optional | The axis of values. See [Chart Axes](usage/chart-axes.md) |
-| `secondaryValueAxis` | `ChartValueAxis` | Optional | A second axis of values, on the right. See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
-| `font` | `ChartFont` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `chartArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `plotArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `decorative` | `boolean` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
+| Property | Type | Notes | Description |
+| -------------------- | -------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"line"` \| `"area"` | Required | Lines, or filled areas |
+| `categories` | `(string \| number \| Date)[]` \| `ChartCategoryGroup[]` | Required | The categories, in order, or [in groups](usage/chart-data.md#categories-in-groups). See [Chart Data](usage/chart-data.md) |
+| `series` | `ChartSeries[]` | Required | `{ name, values, color?, ... }`, with a value or `null` for each category. See [Series](#series) |
+| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | See [Stacking](#stacking). Default `"none"` |
+| `markers` | `boolean` \| `ChartMarker` | Optional | Line charts: a marker at each point. Default `false`. See [Markers](#markers) |
+| `smooth` | `boolean` | Optional | Line charts: curved lines. Default `false` |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `categoryAxis` | `ChartAxis` | Optional | The axis of categories. See [Chart Axes](usage/chart-axes.md) |
+| `valueAxis` | `ChartValueAxis` | Optional | The axis of values. See [Chart Axes](usage/chart-axes.md) |
+| `secondaryValueAxis` | `ChartValueAxis` | Optional | A second axis of values, on the right. See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
+| `emptyValues` | `"gap"` \| `"zero"` \| `"connect"` | Optional | How `null` is drawn. Default `"gap"`. See [Empty Values](#empty-values) |
+| `dataTable` | `boolean` \| `ChartDataTable` | Optional | A table of the data. See [Chart Titles and Legends](usage/chart-titles-and-legends.md#a-data-table) |
+| `font` | `ChartFont` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `chartArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `plotArea` | `ChartAreaStyle` | Optional | See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `decorative` | `boolean` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
### Series
-| Property | Type | Notes | Description |
-| ------------ | ---------------------------------- | -------- | ---------------------------------------------------------------------------------------------- |
-| `name` | `string` | Required | The series' name, shown in the legend |
-| `values` | `(number \| null)[]` | Required | A value for each category, or `null` for a gap |
-| `color` | `string` \| `ThemeColor` | Optional | See [Chart Colours](usage/chart-colors.md) |
-| `markers` | `boolean` \| `ChartMarker` | Optional | The series' own markers. See [Markers](#markers) |
-| `smooth` | `boolean` | Optional | The series' own curved line |
-| `line` | `ChartLine` | Optional | `{ color?, width?, dash? }` of the series' line. See [Lines](#lines) |
-| `dataLabels` | `false` \| `ChartDataLabels` | Optional | The series' own labels. See [Chart Data Labels](usage/chart-data-labels.md#each-series-labels) |
-| `type` | `"column"` \| `"line"` \| `"area"` | Optional | Draws the series another way. See [Combo Charts](usage/chart-combo.md) |
-| `axis` | `"primary"` \| `"secondary"` | Optional | See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| Property | Type | Notes | Description |
+| ------------- | ------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------- |
+| `name` | `string` | Required | The series' name, shown in the legend |
+| `values` | `(number \| null)[]` | Required | A value for each category, or `null` for a gap |
+| `color` | `string` \| `ThemeColor` | Optional | See [Chart Colours](usage/chart-colors.md) |
+| `markers` | `boolean` \| `ChartMarker` | Optional | The series' own markers. See [Markers](#markers) |
+| `smooth` | `boolean` | Optional | The series' own curved line |
+| `line` | `ChartLine` | Optional | `{ color?, width?, dash? }` of the series' line. See [Lines](#lines) |
+| `dataLabels` | `false` \| `ChartDataLabels` | Optional | The series' own labels. See [Chart Data Labels](usage/chart-data-labels.md#each-series-labels) |
+| `type` | `"column"` \| `"line"` \| `"area"` | Optional | Draws the series another way. See [Combo Charts](usage/chart-combo.md) |
+| `axis` | `"primary"` \| `"secondary"` | Optional | See [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| `pointLabels` | `(false \| ChartPointLabel \| undefined)[]` | Optional | Labels of single points. See [Chart Data Labels](usage/chart-data-labels.md#labels-of-single-points) |
+| `trendlines` | `ChartTrendline[]` | Optional | See [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md) |
+| `errorBars` | `ChartErrorBars` | Optional | See [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md#error-bars) |
diff --git a/usage/chart-pie-and-doughnut.md b/usage/chart-pie-and-doughnut.md
index 36140b3161..1f39a4d17e 100644
--- a/usage/chart-pie-and-doughnut.md
+++ b/usage/chart-pie-and-doughnut.md
@@ -1,6 +1,6 @@
# Pie and Doughnut Charts
-A pie chart shows the parts of one whole as slices of a circle. A doughnut chart shows the parts of several wholes as rings, one inside the other, so they can be compared.
+A pie chart shows the parts of one whole as slices of a circle. A doughnut chart shows the parts of several wholes as rings, one inside the other, so they can be compared. A pie of pie or bar of pie chart takes the smallest slices out of a pie, and draws them again beside it, so they can be read.
[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
@@ -60,26 +60,78 @@ dataLabels: { percentage: true },
[Chart Data Labels](usage/chart-data-labels.md) shows what else a label can show, and where labels can go. Each ring of a doughnut can have labels of its own, with its series' own `dataLabels`.
+## Pulling Out Slices
+
+`explosion` pulls slices out from the centre, as Word's "Pie Explosion" and "Point Explosion" do, by a percentage of the radius, from `0` to `400`. One number pulls out every slice:
+
+```ts
+series: [{ name: "Share", values: [40, 25, 20, 15], explosion: 10 }],
+```
+
+A list pulls out each slice by its own amount, in the order of the categories. `undefined` leaves a slice in, so this pulls out only the last:
+
+```ts
+series: [{ name: "Share", values: [40, 25, 20, 15], explosion: [undefined, undefined, undefined, 25] }],
+```
+
+A slice pulled out on its own is often labelled on its own too. See [Labels of Single Points](usage/chart-data-labels.md#labels-of-single-points).
+
## The First Slice
The first slice starts at 12 o'clock, and the slices go clockwise. `firstSliceAngle` turns the chart, so the first slice starts that many degrees clockwise from 12 o'clock, from `0` to `360`. `firstSliceAngle: 90` starts it at 3 o'clock.
+## Pie of Pie and Bar of Pie
+
+A pie of pie chart takes some slices out of the pie, and draws them as a second, smaller pie beside it. The pie has one slice in their place, joined to the second pie by lines. A bar of pie chart draws them as a stacked bar instead. They are Word's "Pie of Pie" and "Bar of Pie" charts:
+
+```ts
+new ChartRun({
+ type: "pieOfPie",
+ title: "Spending",
+ categories: ["Rent", "Food", "Travel", "Books", "Games", "Music"],
+ series: [{ name: "Spending", values: [1200, 450, 180, 60, 45, 30] }],
+ split: { by: "position", count: 3 },
+ dataLabels: { percentage: true },
+});
+```
+
+`split` picks the slices that go to the second plot:
+
+| `split` | Picks |
+| ---------------------------------------------- | ----------------------------------------------------------------- |
+| `{ by: "position", count: 3 }` | The last 3 categories |
+| `{ by: "value", lessThan: 100 }` | The slices whose values are less than 100 |
+| `{ by: "percentage", lessThan: 5 }` | The slices less than 5% of the whole |
+| `{ by: "categories", categories: ["A", "B"] }` | The slices of the categories named, wherever they are in the list |
+
+Without `split`, the last third of the categories go to the second plot, rounded up: 2 of 6, or 3 of 7. Put the categories in order of size, largest first, to split off the smallest by position. The split is written even when it is the default, so every application splits the pie the same way.
+
+`secondPlotSize` is the second plot's size, as a percentage of the pie's, from `5` to `200`, and is `75` unless given. `gapWidth` is the gap between them, as a percentage of the second plot's width, from `0` to `500`, and is `100` unless given. `seriesLines` is the colour, width and dashes of the lines joining them.
+
+A pie of pie or bar of pie chart has one series, and its first slice always starts at 12 o'clock, so it has no `firstSliceAngle`. Its slices can be pulled out, as a pie's can.
+
+LibreOffice splits a pie only by position, and Pages draws a plain pie. See [Chart Compatibility](usage/chart-compatibility.md).
+
## Options
-These are all the options of a pie or doughnut chart. Each links to the page that explains it.
+These are all the options of a pie, doughnut, pie of pie or bar of pie chart. Each links to the page that explains it.
-| Property | Type | Notes | Description |
-| ----------------- | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------ |
-| `type` | `"pie"` \| `"doughnut"` | Required | A pie, or rings |
-| `categories` | `(string \| number)[]` | Required | The slices, in order. See [Chart Data](usage/chart-data.md) |
-| `series` | `PieChartSeries[]` | Required | `{ name, values, colors?, dataLabels? }`. A pie chart has one, and a doughnut chart a ring for each |
-| `holeSize` | `number` | Optional | Doughnut charts: the hole, as a percentage of the doughnut's width, from 10 to 90. Default `50` |
-| `firstSliceAngle` | `number` | Optional | Degrees clockwise from 12 o'clock, from 0 to 360. Default `0` |
-| `dataLabels` | `PieChartDataLabels` | Optional | `{ value?, category?, seriesName?, percentage? }`. See [Chart Data Labels](usage/chart-data-labels.md) |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| Property | Type | Notes | Description |
+| ----------------- | ------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"pie"` \| `"doughnut"` \| `"pieOfPie"` \| `"barOfPie"` | Required | A pie, rings, or a pie with a second plot |
+| `categories` | `(string \| number)[]` | Required | The slices, in order. See [Chart Data](usage/chart-data.md) |
+| `series` | `PieChartSeries[]` | Required | `{ name, values, colors?, explosion?, dataLabels?, pointLabels? }`. A doughnut chart has a ring for each, and the others have one |
+| `holeSize` | `number` | Optional | Doughnut charts: the hole, as a percentage of the doughnut's width, from 10 to 90. Default `50` |
+| `firstSliceAngle` | `number` | Optional | Pie and doughnut charts: degrees clockwise from 12 o'clock, from 0 to 360. Default `0` |
+| `split` | `PieChartSplit` | Optional | Pie of pie and bar of pie charts: the slices of the second plot. Default the last third of the categories |
+| `secondPlotSize` | `number` | Optional | Pie of pie and bar of pie charts: a percentage of the pie's size, from 5 to 200. Default `75` |
+| `gapWidth` | `number` | Optional | Pie of pie and bar of pie charts: a percentage of the second plot's width, from 0 to 500. Default `100` |
+| `seriesLines` | `ChartLine` | Optional | Pie of pie and bar of pie charts: the lines joining the pie to the second plot |
+| `dataLabels` | `PieChartDataLabels` | Optional | `{ value?, category?, seriesName?, percentage? }`. See [Chart Data Labels](usage/chart-data-labels.md) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md). Its entries are the categories |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-Pie and doughnut charts have no axes. [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
+These charts have no axes. [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
diff --git a/usage/chart-radar.md b/usage/chart-radar.md
index ae70c52ed4..169a214639 100644
--- a/usage/chart-radar.md
+++ b/usage/chart-radar.md
@@ -46,20 +46,21 @@ See [Chart Axes](usage/chart-axes.md).
## Options
-| Property | Type | Notes | Description |
-| ---------------- | -------------------------- | -------- | -------------------------------------------------------------------------------------------------- |
-| `type` | `"radar"` | Required | |
-| `categories` | `(string \| number)[]` | Required | The spokes, in order. See [Chart Data](usage/chart-data.md) |
-| `series` | `RadarChartSeries[]` | Required | `{ name, values, color?, markers?, line?, dataLabels? }`, with a value or `null` for each category |
-| `markers` | `boolean` \| `ChartMarker` | Optional | A marker at each point. Default `false`. See [Markers](usage/chart-line-and-area.md#markers) |
-| `filled` | `boolean` | Optional | Fills each series' area. Default `false` |
-| `categoryAxis` | `ChartAxis` | Optional | The spokes and their labels. See [Chart Axes](usage/chart-axes.md) |
-| `valueAxis` | `ChartValueAxis` | Optional | The axis up the first spoke. See [Chart Axes](usage/chart-axes.md) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md). A radar chart's labels have no `position` |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| Property | Type | Notes | Description |
+| ---------------- | ---------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
+| `type` | `"radar"` | Required | |
+| `categories` | `(string \| number)[]` | Required | The spokes, in order. See [Chart Data](usage/chart-data.md) |
+| `series` | `RadarChartSeries[]` | Required | `{ name, values, color?, markers?, line?, dataLabels?, pointLabels? }`, with a value or `null` for each category |
+| `markers` | `boolean` \| `ChartMarker` | Optional | A marker at each point. Default `false`. See [Markers](usage/chart-line-and-area.md#markers) |
+| `filled` | `boolean` | Optional | Fills each series' area. Default `false` |
+| `categoryAxis` | `ChartAxis` | Optional | The spokes and their labels. See [Chart Axes](usage/chart-axes.md) |
+| `valueAxis` | `ChartValueAxis` | Optional | The axis up the first spoke. See [Chart Axes](usage/chart-axes.md) |
+| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md). A radar chart's labels have no `position` |
+| `emptyValues` | `"gap"` \| `"zero"` \| `"connect"` | Optional | How `null` is drawn. Default `"gap"`. See [Empty Values](usage/chart-line-and-area.md#empty-values) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
[Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
diff --git a/usage/chart-scatter.md b/usage/chart-scatter.md
index 0c59fee2ac..215988e68a 100644
--- a/usage/chart-scatter.md
+++ b/usage/chart-scatter.md
@@ -68,19 +68,19 @@ A scatter chart has two value axes: `xAxis` along the bottom and `yAxis` up the
These are all the options of a scatter chart. Each links to the page that explains it.
-| Property | Type | Notes | Description |
-| ---------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------- |
-| `type` | `"scatter"` | Required | |
-| `series` | `ScatterChartSeries[]` | Required | `{ name, points, color?, markers?, line?, dataLabels? }`, where a point is `{ x, y }` |
-| `markers` | `boolean` \| `ChartMarker` | Optional | A marker at each point. Default `true` |
-| `lines` | `"none"` \| `"straight"` \| `"smooth"` | Optional | How the points are joined. Default `"none"` |
-| `xAxis` | `ChartValueAxis` | Optional | The horizontal axis. See [Chart Axes](usage/chart-axes.md) |
-| `yAxis` | `ChartValueAxis` | Optional | The vertical axis. See [Chart Axes](usage/chart-axes.md) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
-| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
-| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| Property | Type | Notes | Description |
+| ---------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"scatter"` | Required | |
+| `series` | `ScatterChartSeries[]` | Required | `{ name, points, color?, markers?, line?, dataLabels?, pointLabels?, trendlines?, xErrorBars?, yErrorBars? }`, where a point is `{ x, y }`. See [Chart Data Labels](usage/chart-data-labels.md#labels-of-single-points) and [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md) |
+| `markers` | `boolean` \| `ChartMarker` | Optional | A marker at each point. Default `true` |
+| `lines` | `"none"` \| `"straight"` \| `"smooth"` | Optional | How the points are joined. Default `"none"` |
+| `xAxis` | `ChartValueAxis` | Optional | The horizontal axis. See [Chart Axes](usage/chart-axes.md) |
+| `yAxis` | `ChartValueAxis` | Optional | The vertical axis. See [Chart Axes](usage/chart-axes.md) |
+| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.md) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
A series' `line` is only for a chart whose `lines` join the points. A [bubble chart](usage/chart-bubble.md) is a scatter chart whose points have sizes. [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
diff --git a/usage/chart-stock.md b/usage/chart-stock.md
new file mode 100644
index 0000000000..b05e74f838
--- /dev/null
+++ b/usage/chart-stock.md
@@ -0,0 +1,100 @@
+# Stock Charts
+
+
+
+A stock chart shows how a price moved over each day, or other period: its highest and lowest price, joined by a line, and where it closed. With opening prices, a bar goes from each open to each close. With volumes, the amount traded is drawn as columns underneath.
+
+[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
+
+## A Stock Chart
+
+```ts
+new ChartRun({
+ type: "stock",
+ title: "Share price",
+ categories: [new Date("2025-01-06"), new Date("2025-01-07"), new Date("2025-01-08")],
+ high: [103.1, 104.8, 105.0],
+ low: [100.4, 101.9, 102.6],
+ close: [102.4, 104.2, 102.9],
+});
+```
+
+- `categories` are the days, or other periods, along the bottom: dates, text or numbers.
+- `high`, `low` and `close` have a price for each category, in order. `null` leaves a gap.
+- A line joins each high to its low, and a short dash across it marks the close. This is Word's "High-Low-Close" chart.
+
+Each high has to be at least its low, and each open and close between them. `new ChartRun(...)` throws otherwise, as the prices would be mixed up.
+
+## Opening Prices
+
+`open` adds each category's opening price. A bar goes from the open to the close: white where the price rose, and dark grey where it fell. This is Word's "Open-High-Low-Close" chart, also known as a candlestick chart:
+
+```ts
+open: [101.2, 102.5, 104.1],
+upBars: { fill: "70AD47" },
+downBars: { fill: "C00000" },
+```
+
+`upBars` and `downBars` are the fill and border of the bars where the price rose and fell, as `{ fill, border }`, like the [chart area's](usage/chart-fonts-and-fills.md).
+
+## Volumes
+
+`volume` adds each category's volume traded, as columns against an axis of their own on the left. The prices' axis moves to the right. This is Word's "Volume-High-Low-Close" chart, or with `open`, its "Volume-Open-High-Low-Close" chart:
+
+```ts
+volume: [18200, 21500, 26400],
+volumeAxis: { displayUnits: "thousands" },
+valueAxis: { minimum: 90 },
+```
+
+`volumeAxis` is the volumes' axis, and `valueAxis` is always the prices' axis. Volumes can't be negative.
+
+## Dates
+
+A stock chart's dates are spaced evenly, one for each category, rather than by date, so days without trading, such as weekends, leave no gaps. They are labelled as dates, and `categoryAxis: { numberFormat: "d mmm" }` changes how. A value axis' `crossesAt` is a category's number, from 1. See [Chart Axes](usage/chart-axes.md).
+
+## Series Names
+
+The legend shows the series by Word's names: "Volume", "Open", "High", "Low" and "Close". `names` changes them, such as to another language:
+
+```ts
+names: { high: "Haut", low: "Bas", close: "Clôture" },
+```
+
+Only the volumes, and the closing price when there are no opening prices, have a key in the legend, so a stock chart without volumes often has `legend: false`.
+
+## The High-Low Lines
+
+`highLowLines` is the colour, width and dashes of the lines from each high to each low. They are thin and dark grey unless given.
+
+## Options
+
+| Property | Type | Notes | Description |
+| ---------------- | ---------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------- |
+| `type` | `"stock"` | Required | |
+| `categories` | `(string \| number \| Date)[]` | Required | The days, or other periods, in order |
+| `high` | `(number \| null)[]` | Required | Each category's highest price |
+| `low` | `(number \| null)[]` | Required | Each category's lowest price |
+| `close` | `(number \| null)[]` | Required | Each category's closing price |
+| `open` | `(number \| null)[]` | Optional | Each category's opening price, with a bar from it to the close |
+| `volume` | `(number \| null)[]` | Optional | Each category's volume traded, as columns |
+| `names` | `StockChartSeriesNames` | Optional | `{ volume?, open?, high?, low?, close? }`, the series' names |
+| `upBars` | `ChartAreaStyle` | Optional | `{ fill?, border? }` of the bars where the price rose. Needs `open` |
+| `downBars` | `ChartAreaStyle` | Optional | `{ fill?, border? }` of the bars where the price fell. Needs `open` |
+| `highLowLines` | `ChartLine` | Optional | `{ color?, width?, dash? }` of the lines from each high to each low |
+| `categoryAxis` | `ChartAxis` | Optional | The axis of categories. See [Chart Axes](usage/chart-axes.md) |
+| `valueAxis` | `ChartValueAxis` | Optional | The axis of prices. See [Chart Axes](usage/chart-axes.md) |
+| `volumeAxis` | `ChartValueAxis` | Optional | The axis of volumes. Needs `volume` |
+| `emptyValues` | `"gap"` \| `"zero"` \| `"connect"` | Optional | How `null` is drawn. Default `"gap"` |
+| `dataTable` | `boolean` \| `ChartDataTable` | Optional | A table of the prices under the plot. See [Chart Titles and Legends](usage/chart-titles-and-legends.md#a-data-table) |
+| `title` | `string` \| `ChartTitle` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `legend` | `false` \| `ChartLegend` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| `transformation` | `{ width, height }` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `floating` | `IFloating` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+| `altText` | `DocPropertiesOptions` | Optional | See [Chart Size and Position](usage/chart-size-and-position.md) |
+
+[Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows the options every chart has for its text, background and border.
+
+## Compatibility
+
+LibreOffice draws stock charts, with each close as a tick to the right of its line, and shows only the closing price and volumes in the legend. Pages draws a stock chart's prices as lines, and leaves them out when there are volumes. See [Chart Compatibility](usage/chart-compatibility.md).
diff --git a/usage/chart-templates.md b/usage/chart-templates.md
index e34ea47802..a5f90e111c 100644
--- a/usage/chart-templates.md
+++ b/usage/chart-templates.md
@@ -60,15 +60,24 @@ new ChartDataPatch({
},
],
});
+
+// A stock chart: its prices, and its opening prices and volumes if it has them
+new ChartDataPatch({
+ categories: [new Date("2025-01-06"), new Date("2025-01-07")],
+ high: [103.1, 104.8],
+ low: [100.4, 101.9],
+ close: [102.4, 104.2],
+});
```
-| Option | Type | Notes |
-| ----------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| categories | `(string \| number \| Date)[]` | For a chart with categories. Dates are for column, bar, line and area charts |
-| series | `{ name, values }[]` with categories, or `{ name, points }[]` | Each series' name, and a value for each category (`null` for a gap), or its points. A bubble chart's points each need a `size`, and a scatter chart's leave it out |
-| description | `string` | The chart's alt text description. Default is a description of the new data, such as "Column chart, Sales. 2024: Q1 120, Q2 135." An empty one removes it |
+| Option | Type | Notes |
+| ------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| categories | `(string \| number \| Date)[]` \| `ChartCategoryGroup[]` | For a chart with categories. Dates, and [groups](usage/chart-data.md#categories-in-groups), are for column, bar, line and area charts |
+| series | `{ name, values }[]` with categories, or `{ name, points }[]` | Each series' name, and a value for each category (`null` for a gap), or its points. A bubble chart's points each need a `size`, and a scatter chart's leave it out |
+| high, low, close, open, volume, names | `(number \| null)[]`, `StockChartSeriesNames` | For a stock chart, in place of `series`, as for a [stock chart](usage/chart-stock.md). It takes `open` and `volume` if the template's chart has them, and only then |
+| description | `string` | The chart's alt text description. Default is a description of the new data, such as "Column chart, Sales. 2024: Q1 120, Q2 135." An empty one removes it |
-The data is checked when the patch is made, as a `ChartRun`'s is, and then against the template's chart: a pie chart has one series, pie and doughnut charts have no negative values, and a scatter or bubble chart's series have points.
+The data is checked when the patch is made, as a `ChartRun`'s is, and then against the template's chart: a pie chart has one series, pie and doughnut charts have no negative values, a scatter or bubble chart's series have points, and a stock chart has opening prices and volumes if the template's has them.
## What Changes, and What Stays
@@ -78,7 +87,9 @@ The chart keeps its look. Its type, title, colours, fonts, labels, axes, legend
- **More series.** New series copy the look of the template's last series, such as its line, markers and labels, in their own colour: the next of the theme's accent colours, as `ChartRun` colours them. In a combo chart, they are drawn the way the last series is.
- **Fewer series.** The template's other series are removed, with any axes only they used, such as a secondary axis.
- **More points.** When each point has its own colour, as the slices of a pie do, new points take the next of the theme's accent colours. Otherwise they take their series' colour.
-- **Fewer points.** The colours and labels of points past the new data are removed.
+- **Fewer points.** The colours and labels of points past the new data are removed, and so are a pie of pie's split slices past it.
+- **Slices pulled out.** New slices are pulled out as far as the template's, if every slice of the template is pulled out as far. A slice pulled out on its own is that slice's.
+- **Trendlines, error bars and data tables** stay, and are drawn for the new data. A trendline that can't be fitted to the new values, such as a moving average over more points than there are, isn't drawn, as when a chart's data is edited in Word. New series don't copy the template's last series' trendlines or error bars.
- **Number formats.** Values keep the chart's number format, such as `0%`. So do categories, when they and the template's are both dates or both numbers.
- **Dates.** Dates on a date axis are spaced by days, months or years, as the new dates need. Categories that aren't dates make it a text axis.
- **The workbook.** The chart gets a new embedded workbook holding the new data, so Word's **Edit Data** opens it. The template's workbook is removed, so its data doesn't stay in the document.
@@ -90,7 +101,8 @@ The chart keeps its look. Its type, title, colours, fonts, labels, axes, legend
- **Drawings that aren't charts**, such as pictures and shapes. In a group of drawings, put the placeholder in the alt text of the chart itself, unless it is the group's only chart.
- **Office 2016's chart types**: waterfall, histogram, box and whisker, treemap, sunburst, funnel and map charts.
-- **Stock, surface and pivot charts.**
+- **Surface and pivot charts.**
+- **A stock chart combined with a chart other than its volumes' columns.**
- **Charts with something else in their workbook's cells**: data labels from cells (Word's "Value From Cells"), series hidden with Word's chart filters, error bars with custom values from cells, and titles or labels linked to cells. The new data replaces the workbook, so these would lose their cells.
- **Data that isn't the chart's kind**, such as points for a column chart or two series for a pie chart.
- **Two charts' placeholders** in one chart's alt text.
diff --git a/usage/chart-titles-and-legends.md b/usage/chart-titles-and-legends.md
index 5d4d567ebe..9fe1e0b18a 100644
--- a/usage/chart-titles-and-legends.md
+++ b/usage/chart-titles-and-legends.md
@@ -57,9 +57,56 @@ new ChartRun({
});
```
+### Hiding Legend Entries
+
+`hiddenEntries` leaves entries out of the legend, by their text, such as a target line everyone knows:
+
+```ts
+series: [
+ { name: "Sales", values: [120, 135, 150, 170] },
+ { name: "Target", values: [140, 140, 140, 140], type: "line" },
+],
+legend: { hiddenEntries: ["Target"] },
+```
+
+An entry is a series' name, a [trendline's](usage/chart-trendlines-and-error-bars.md) name, such as "Linear (Sales)", or on a pie or doughnut chart, a category. The series stays in the chart. `new ChartRun(...)` throws for text that isn't an entry's, and lists the entries.
+
+Pages shows every entry. See [Chart Compatibility](usage/chart-compatibility.md).
+
+## A Data Table
+
+`dataTable: true` puts a table of the chart's data under its plot, as Word's "Data Table" does: a row for each series, with its key from the legend, and a column for each category. It is often used in place of labels, or of the legend:
+
+```ts
+new ChartRun({
+ type: "column",
+ title: "Rainfall (mm)",
+ categories: ["Jan", "Feb", "Mar"],
+ series: [
+ { name: "2024", values: [78, 52, 61] },
+ { name: "2025", values: [83, 60, 49] },
+ ],
+ dataTable: true,
+ legend: false,
+});
+```
+
+`dataTable` takes options too:
+
+| Option | What it does |
+| ------------------- | ------------------------------------------------ |
+| `legendKeys` | `false` leaves out each series' key |
+| `horizontalBorders` | `false` leaves out the lines between the rows |
+| `verticalBorders` | `false` leaves out the lines between the columns |
+| `outline` | `false` leaves out the line around the table |
+| `font` | The table's font. Its text is 9 point by default |
+
+Column, bar, line, area and stock charts have a data table. Pages doesn't draw it. See [Chart Compatibility](usage/chart-compatibility.md).
+
## Options
-| Property | Type | Notes | Description |
-| -------- | ------------------------ | -------- | ------------------------------------------------------------------------------------- |
-| `title` | `string` \| `ChartTitle` | Optional | The title, above the chart, or `{ text, font? }`. Each line is a line of the title |
-| `legend` | `false` \| `ChartLegend` | Optional | `{ position?, font? }`, or `false` for no legend. Default is a legend below the chart |
+| Property | Type | Notes | Description |
+| ----------- | ----------------------------- | -------- | ----------------------------------------------------------------------------------------------------- |
+| `title` | `string` \| `ChartTitle` | Optional | The title, above the chart, or `{ text, font? }`. Each line is a line of the title |
+| `legend` | `false` \| `ChartLegend` | Optional | `{ position?, font?, hiddenEntries? }`, or `false` for no legend. Default is a legend below the chart |
+| `dataTable` | `boolean` \| `ChartDataTable` | Optional | `{ legendKeys?, horizontalBorders?, verticalBorders?, outline?, font? }`, or `true`. Default is none |
diff --git a/usage/chart-trendlines-and-error-bars.md b/usage/chart-trendlines-and-error-bars.md
new file mode 100644
index 0000000000..2def85c57b
--- /dev/null
+++ b/usage/chart-trendlines-and-error-bars.md
@@ -0,0 +1,119 @@
+# Chart Trendlines and Error Bars
+
+A trendline is a line fitted to a series' values, which shows their trend and can extend it as a forecast. Error bars show how far each value might be off.
+
+[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
+
+## Trendlines
+
+A series' `trendlines` fit lines to its values:
+
+```ts
+new ChartRun({
+ type: "line",
+ title: "Visitors",
+ categories: ["Mon", "Tue", "Wed", "Thu", "Fri"],
+ series: [
+ {
+ name: "Visitors",
+ values: [320, 410, 380, 460, 610],
+ trendlines: [{ type: "linear", forecastForward: 2, equation: true, rSquared: true }],
+ },
+ ],
+});
+```
+
+A trendline is a dotted line in its series' colour, and has an entry in the legend, such as "Linear (Visitors)". A series can have more than one. Column, bar, line, area, scatter and bubble charts have trendlines. A stacked series has none, as in Word.
+
+### Types
+
+`type` is the kind of line fitted to the values, as in Word's "Format Trendline":
+
+| `type` | Word's name | Fits | Options |
+| ----------------- | -------------- | ------------------------------------------------------------ | -------- |
+| `"linear"` | Linear | A straight line | |
+| `"exponential"` | Exponential | A curve that rises or falls ever faster. Values above 0 only | |
+| `"logarithmic"` | Logarithmic | A curve that rises or falls quickly, then levels out | |
+| `"polynomial"` | Polynomial | A curve with as many bends as its order, less one | `order` |
+| `"power"` | Power | A curve for values that grow at a steady rate. Above 0 only | |
+| `"movingAverage"` | Moving Average | The average of each point and those before it | `period` |
+
+- `order` is a polynomial's order, from `2` to `6`, and is `2` unless given.
+- `period` is how many points each point of a moving average averages, from `2` to one fewer than the series' values, and is `2` unless given.
+
+A chart with categories numbers them 1, 2, 3 and so on for the fit, as Word does. A scatter or bubble chart fits its points' x and y. An exponential or power trendline can't be fitted to values of 0 or less, or a logarithmic or power trendline to x values of 0 or less, and `new ChartRun(...)` throws for them.
+
+### Forecasts, Intercepts and Equations
+
+| Option | What it does |
+| ------------------ | --------------------------------------------------------------------------------------------------------------- |
+| `forecastForward` | Extends the line past the last point, by that many categories, or along a scatter chart's x axis |
+| `forecastBackward` | Extends it before the first point |
+| `intercept` | Where it crosses the vertical axis. Linear, exponential and polynomial trendlines only; above 0 for exponential |
+| `equation` | Shows its equation on the chart, such as "y = 43.98x + 276.77" |
+| `rSquared` | Shows its R² value, how well it fits, on the chart |
+| `label` | `{ numberFormat?, font? }` of the equation and R² value, such as `{ numberFormat: "0.00" }` |
+| `name` | Its name in the legend. Default is Word's, such as "Linear (Visitors)" |
+| `line` | `{ color?, width?, dash? }`. Default is the series' colour, 1.5 points, in short dots |
+
+A moving average has none of these but `name` and `line`.
+
+## Error Bars
+
+A series' `errorBars` draw a line from each point, up and down, or on a bar chart, left and right:
+
+```ts
+series: [{ name: "Average", values: [72, 65, 81], errorBars: { type: "percentage", value: 10 } }],
+```
+
+`type` is how long the bars are, as in Word's "Format Error Bars":
+
+| Error bars | Word's name | Each bar is |
+| ----------------------------------------------- | ------------------ | ---------------------------------------------------------------------- |
+| `{ type: "fixed", value: 5 }` | Fixed value | 5 long |
+| `{ type: "percentage", value: 10 }` | Percentage | 10% of its point's value |
+| `{ type: "standardDeviation", value: 2 }` | Standard deviation | 2 standard deviations of the series' values. `value` is 1 unless given |
+| `{ type: "standardError" }` | Standard error | The standard error of the series' values |
+| `{ type: "custom", plus: [...], minus: [...] }` | Custom | Its own length, one for each point |
+
+Error bars take these too:
+
+- `direction`: `"both"` ways, the default, or only towards higher values, `"plus"`, or lower ones, `"minus"`.
+- `endCaps`: `false` leaves out the short line across each bar's end.
+- `line`: `{ color?, width?, dash? }`. Default is dark grey, 0.75 points.
+
+Column, bar, line, area, scatter and bubble charts have error bars, stacked or not.
+
+### Custom Error Bars
+
+Custom error bars have a length of each point's own, such as a range of uncertainty. `plus` is how far each bar goes towards higher values, and `minus` towards lower ones, in the order of the categories or points:
+
+```ts
+errorBars: { type: "custom", plus: [6, 9, 4], minus: [5, 8, 6] },
+```
+
+- Give `plus`, `minus` or both. Bars go only the ways given, so custom error bars have no `direction`.
+- `null` leaves a point without a bar. Lengths can't be negative.
+- The lengths are kept in the chart's workbook, in columns after the series', so Word's **Edit Data** shows them. See [Chart Data](usage/chart-data.md#editing-the-data-in-word).
+
+### Scatter and Bubble Charts
+
+A scatter or bubble chart's points can have error bars both ways: `xErrorBars` go left and right, along the x axis, and `yErrorBars` up and down:
+
+```ts
+series: [
+ {
+ name: "Samples",
+ points: [
+ { x: 1, y: 2.1 },
+ { x: 2, y: 3.9 },
+ ],
+ xErrorBars: { type: "fixed", value: 0.2 },
+ yErrorBars: { type: "standardError" },
+ },
+],
+```
+
+## Compatibility
+
+LibreOffice draws trendlines and error bars on every chart but a bubble chart, and writes an equation's numbers in full. Pages draws them, and gives a trendline an entry in the legend only if it has a `name`. See [Chart Compatibility](usage/chart-compatibility.md).
diff --git a/usage/charts.md b/usage/charts.md
index f7ad74c84e..0be0339865 100644
--- a/usage/charts.md
+++ b/usage/charts.md
@@ -47,49 +47,60 @@ This draws a column chart with a column for each year in each month, and a legen
- `series` are the sets of values. Each has a `name`, which the legend shows, and one value for each category, in order.
- `null` leaves a gap, so there is no 2025 column for March.
-Every chart needs a `type` and its `series`, and every type but a scatter chart needs `categories`. All the other options are optional.
+Every chart needs a `type` and its `series`, and every type but a scatter or bubble chart needs `categories`. A stock chart's data is its prices instead of `series`. All the other options are optional.
## Chart Types
`type` is the name Word gives the chart in **Insert > Chart**. Each page shows a chart type's own options, such as stacking for column charts and markers for line charts.
-| Type | Draws | Use it to | Page |
-| ------------ | ---------------------------------------- | --------------------------------------- | ---------------------------------------------------------- |
-| `"column"` | Vertical bars | Compare values across categories | [Column and Bar Charts](usage/chart-column-and-bar.md) |
-| `"bar"` | Horizontal bars | Compare values with long category names | [Column and Bar Charts](usage/chart-column-and-bar.md) |
-| `"line"` | A line for each series | Show a trend over time | [Line and Area Charts](usage/chart-line-and-area.md) |
-| `"area"` | A filled area for each series | Show a trend, and how the parts add up | [Line and Area Charts](usage/chart-line-and-area.md) |
-| `"pie"` | Slices of a circle | Show the parts of one whole | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md) |
-| `"doughnut"` | A ring of slices for each series | Compare the parts of several wholes | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md) |
-| `"radar"` | A line round a spoke for each category | Compare several qualities at once | [Radar Charts](usage/chart-radar.md) |
-| `"scatter"` | Points, each with its own x and y | Show how two numbers relate | [Scatter Charts](usage/chart-scatter.md) |
-| `"bubble"` | Bubbles, each with its own x, y and size | Show how three numbers relate | [Bubble Charts](usage/chart-bubble.md) |
+| Type | Draws | Use it to | Page |
+| ------------ | ------------------------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------ |
+| `"column"` | Vertical bars | Compare values across categories | [Column and Bar Charts](usage/chart-column-and-bar.md) |
+| `"bar"` | Horizontal bars | Compare values with long category names | [Column and Bar Charts](usage/chart-column-and-bar.md) |
+| `"line"` | A line for each series | Show a trend over time | [Line and Area Charts](usage/chart-line-and-area.md) |
+| `"area"` | A filled area for each series | Show a trend, and how the parts add up | [Line and Area Charts](usage/chart-line-and-area.md) |
+| `"pie"` | Slices of a circle | Show the parts of one whole | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md) |
+| `"doughnut"` | A ring of slices for each series | Compare the parts of several wholes | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md) |
+| `"pieOfPie"` | A pie, and its smallest slices as a second pie | Read small parts of one whole | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md#pie-of-pie-and-bar-of-pie) |
+| `"barOfPie"` | A pie, and its smallest slices as a bar | Read small parts of one whole | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md#pie-of-pie-and-bar-of-pie) |
+| `"radar"` | A line round a spoke for each category | Compare several qualities at once | [Radar Charts](usage/chart-radar.md) |
+| `"scatter"` | Points, each with its own x and y | Show how two numbers relate | [Scatter Charts](usage/chart-scatter.md) |
+| `"bubble"` | Bubbles, each with its own x, y and size | Show how three numbers relate | [Bubble Charts](usage/chart-bubble.md) |
+| `"stock"` | Each day's high, low and close, and its open and volume | Show how a price moved | [Stock Charts](usage/chart-stock.md) |
Columns, lines and areas can be drawn together in one chart, with a second value axis on the right. See [Combo Charts](usage/chart-combo.md).
## Common Use Cases
-| I want to... | Use | Page |
-| -------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------- |
-| Give a chart its data | `categories` and `series` | [Chart Data](usage/chart-data.md) |
-| Show dates along the bottom | `Date`s as the categories | [Chart Axes](usage/chart-axes.md#dates) |
-| Draw a line over columns | A series' `type` | [Combo Charts](usage/chart-combo.md) |
-| Show numbers on another scale on the right | A series' `axis: "secondary"` | [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
-| Change a series' colour | `color`, such as `"1F4E79"` or a theme colour | [Chart Colours](usage/chart-colors.md) |
-| Pick out one bar in another colour | A series' `colors` | [Column and Bar Charts](usage/chart-column-and-bar.md#bar-colours) |
-| Draw a dashed line, or change the markers | A series' `line` and `markers` | [Line and Area Charts](usage/chart-line-and-area.md#markers) |
-| Add a title, or move or hide the legend | `title` and `legend` | [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| Change the font or the background | `font`, `chartArea` and `plotArea` | [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
-| Name an axis, or set its range or its format | `categoryAxis` and `valueAxis` | [Chart Axes](usage/chart-axes.md) |
-| Use a logarithmic scale, or thousands | `logarithmicBase` and `displayUnits` | [Chart Axes](usage/chart-axes.md#logarithmic-scale) |
-| Show the numbers on the chart | `dataLabels` | [Chart Data Labels](usage/chart-data-labels.md) |
-| Make a chart bigger or smaller | `transformation` | [Chart Size and Position](usage/chart-size-and-position.md) |
-| Float a chart beside its text | `floating` | [Chart Size and Position](usage/chart-size-and-position.md) |
-| Put a chart in a table, header or footer | A `Paragraph` with the chart in it | [Chart Size and Position](usage/chart-size-and-position.md) |
-| Put a chart in a template | `patchDocument`, with the chart in a patch | [Chart Size and Position](usage/chart-size-and-position.md#in-templates) |
-| Give a template's chart, made in Word, data | `patchDocument`, with a `ChartDataPatch` | [Charts in Templates](usage/chart-templates.md) |
-| Describe a chart for screen readers | `altText`, or nothing: it is described for you | [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
-| Know how a chart looks in other applications | | [Chart Compatibility](usage/chart-compatibility.md) |
+| I want to... | Use | Page |
+| -------------------------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------- |
+| Give a chart its data | `categories` and `series` | [Chart Data](usage/chart-data.md) |
+| Show dates along the bottom | `Date`s as the categories | [Chart Axes](usage/chart-axes.md#dates) |
+| Group quarters within years | Groups as the categories | [Chart Data](usage/chart-data.md#categories-in-groups) |
+| Draw a line over columns | A series' `type` | [Combo Charts](usage/chart-combo.md) |
+| Show numbers on another scale on the right | A series' `axis: "secondary"` | [Combo Charts](usage/chart-combo.md#a-secondary-axis) |
+| Change a series' colour | `color`, such as `"1F4E79"` or a theme colour | [Chart Colours](usage/chart-colors.md) |
+| Pick out one bar in another colour | A series' `colors` | [Column and Bar Charts](usage/chart-column-and-bar.md#bar-colours) |
+| Draw a dashed line, or change the markers | A series' `line` and `markers` | [Line and Area Charts](usage/chart-line-and-area.md#markers) |
+| Add a title, or move or hide the legend | `title` and `legend` | [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
+| Change the font or the background | `font`, `chartArea` and `plotArea` | [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) |
+| Name an axis, or set its range or its format | `categoryAxis` and `valueAxis` | [Chart Axes](usage/chart-axes.md) |
+| Use a logarithmic scale, or thousands | `logarithmicBase` and `displayUnits` | [Chart Axes](usage/chart-axes.md#logarithmic-scale) |
+| Show the numbers on the chart | `dataLabels` | [Chart Data Labels](usage/chart-data-labels.md) |
+| Label one point, such as the highest | A series' `pointLabels` | [Chart Data Labels](usage/chart-data-labels.md#labels-of-single-points) |
+| Show a trend, or a forecast | A series' `trendlines` | [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md) |
+| Show how far values might be off | A series' `errorBars` | [Chart Trendlines and Error Bars](usage/chart-trendlines-and-error-bars.md#error-bars) |
+| Join a line across a missing value | `emptyValues: "connect"` | [Line and Area Charts](usage/chart-line-and-area.md#empty-values) |
+| Leave a series out of the legend | `legend: { hiddenEntries }` | [Chart Titles and Legends](usage/chart-titles-and-legends.md#hiding-legend-entries) |
+| Show a table of the data under the chart | `dataTable` | [Chart Titles and Legends](usage/chart-titles-and-legends.md#a-data-table) |
+| Pull a slice out of a pie | A series' `explosion` | [Pie and Doughnut Charts](usage/chart-pie-and-doughnut.md#pulling-out-slices) |
+| Make a chart bigger or smaller | `transformation` | [Chart Size and Position](usage/chart-size-and-position.md) |
+| Float a chart beside its text | `floating` | [Chart Size and Position](usage/chart-size-and-position.md) |
+| Put a chart in a table, header or footer | A `Paragraph` with the chart in it | [Chart Size and Position](usage/chart-size-and-position.md) |
+| Put a chart in a template | `patchDocument`, with the chart in a patch | [Chart Size and Position](usage/chart-size-and-position.md#in-templates) |
+| Give a template's chart, made in Word, data | `patchDocument`, with a `ChartDataPatch` | [Charts in Templates](usage/chart-templates.md) |
+| Describe a chart for screen readers | `altText`, or nothing: it is described for you | [Chart Size and Position](usage/chart-size-and-position.md#alternative-text) |
+| Know how a chart looks in other applications | | [Chart Compatibility](usage/chart-compatibility.md) |
## Importing
@@ -134,6 +145,14 @@ A combo chart with a secondary axis, dates, axes in reverse and on a logarithmic
_Source: https://github.com/dolanmiu/docx/blob/master/demo/122-chart-options.ts_
+### More Charts
+
+Stock charts, pie of pie and bar of pie charts, categories in groups, trendlines and error bars, the labels of single points, a pulled-out slice, a hidden legend entry, a data table, and a line joined across an empty value.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/125-more-charts.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/125-more-charts.ts_
+
### Charts in Templates
A column, a pie and a line chart put in a template saved by Word, where its placeholders were.