Represents a chart in a WordprocessingML document: a column, bar, line, area, pie, doughnut or scatter chart, drawn
-by Word from its data in the document's theme, as a chart made with Word's Insert Chart is.
+
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.
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.
+table, header, footer or footnote. Without a description in its altText, the chart is described for screen readers
+from its data.
@@ -70,12 +72,13 @@ table, header, footer or footnote.
Throws
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, a pie chart has more than one series or a pie or doughnut chart a negative value, a
-scatter point isn't two finite numbers, or an option is out of its range
+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
diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 21b0543082..8f3391290f 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 a90109c656..23293f1aad 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 413b39adb1..18a916174e 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 95258d8fda..7f9cfac4d9 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 c6a8d56a01..7e10b24a6b 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 c3bd8ae496..1c7949cea2 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 5838de0de7..123124a98e 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 22b243488e..b41519c6be 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 7022072f47..a8a66591a1 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 8235f021ea..bd981c09c4 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 5367970f32..16cecbf6af 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 210aec6024..b61a62d476 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 348fd6d9c2..4164b22972 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 a8d8382601..d76d04a057 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 fea9144989..851e668f10 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 ebbc0ebad5..363ef33688 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 59faa8a047..22c8d1b7bd 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 d0be4e1d96..2f02fefb28 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.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index f8f03159f8..6c284118ae 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 701409989b..5da56d8986 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 40defc14b8..b43f41ac2e 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 adcfd46a6b..76afd0743e 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 52776e9522..fa8a721971 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 5d9b1c79f5..3be45ec889 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 b0e0abe8d9..0900d963a9 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 443d852d07..2d088d5ed0 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 3cf69ebdb1..a97c3ff525 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 83cb9b3ba6..dd4ba3a561 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 bf7673a8ec..8e8c203807 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 b09245d3ed..f2170815a7 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 5f3796b4b4..034aa179c3 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 4a20979254..1e58fa7eac 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 f404660d20..f654238586 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 622ba2b570..91fee51054 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 b56db5f390..19ec0e2a8d 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 fb7b3481e5..1e858f694a 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 11d50613b1..6418fd4b39 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 7f81b09904..33b5cae864 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 7fea293b41..2edddd134c 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 97fec43c93..9d35f16470 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 e5d13ba472..084970d1cd 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 e6e75f67fd..560cfcc182 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 7eaac38335..a3b3ec60d7 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 174b8e0f73..d3694a6309 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 4deb885d57..b7302893a4 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 a22112df4a..251a8b34c5 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 e698caa777..4c264ab9d9 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 6a004fcec6..81489b0888 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 d73ecb3558..45a68d2eb6 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 06d08be221..ca3395d9c3 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 26e1d55a00..66de4f64a7 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 eeba77036b..20b7062d89 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 f5fbd37054..00998e1989 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 0c4359ebea..9e79e8ac32 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 5f86340ddd..8cebc80b86 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 72371f8946..8cf25f3656 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 f0232fde81..9a812834aa 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 1320ccec66..2c73252455 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 f9c5eb57ab..ef80b6755c 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 8947db0335..448aff9cd3 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 9bf00447c5..2a7ceb1d22 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 6dacd0313d..7357431f03 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 59f7323e4a..a999910bb8 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 73223d57fa..6cb8f59ea0 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 6f43e58085..6b684fd718 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 fc368d2dce..f59533d9b8 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 1da71a550a..7423f9c667 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 74d8857d6c..fde02fb74d 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 bac675804d..809ef4df93 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 19f5933e03..b70a0008cb 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 e8ac8be161..6c5da34ba4 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 7fc158742a..33017bd971 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 4040d1d4da..ea46a9d1c7 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 3dae5f4d28..d690408de1 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 4e1fdf7efe..a6ee2b5691 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 1b89ef0574..993dbdfb08 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 5f0407b12d..5c9c9942d7 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 568cfa7298..7a734a6516 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 c97c07d9b7..f65f8e06f1 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 53096d95f5..85bee945f9 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 ac3aaa9db3..482808a31a 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 8f32ddd334..0703a7a632 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 3c6123a771..c6c336fe52 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 b3ae22a241..11c95e789e 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 1956aa8889..f5c5e8cf2d 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 a7329dfcc0..f00beb45cd 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 1bd4524958..054d2cc168 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 60a3fca149..27b08377c6 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 0519e2b7c6..8120642d3e 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 d16396977f..f85cffb48e 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 8bb20e8803..94ffee7ec3 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 63840b365e..dbafee8823 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 89c1ae8c2a..e291507f14 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 974597dbde..2c4e4c4d14 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 e3444ae57d..76871f36a3 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 4dc221bdee..d538fd780a 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 721f56d7ad..e94efc2e6a 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 3ea5cddaf1..6357dd9313 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 d6f0d03ef8..d0ba2d825e 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 490d91a807..52dd4462c5 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 8232c7981a..3969857fff 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 e275a6f967..b14574d744 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 ac70577fc3..ff4ff30815 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 7ae18948a2..683907f706 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 539afd4300..d3fddce1d3 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 760d0813b9..f8469033fd 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
Where this axis crosses the other axis. Default is "auto", or for the secondary value axis, the side opposite the
+primary: "maximum", or "minimum" when the categories are in reverse order. valueAxis: { crossesAt: "maximum" }
+puts the value axis on the right
A name, description and title for screen readers. Without a description, the chart is described from its data,
+such as "Column chart, Sales. 2024: Jan 10, Feb 20, Mar 30."
Where the labels are. Default is Office's: outside the end of a bar, in the middle of a stacked bar, to the right of
+a point, and where they fit best on a pie. A chart's position is for the series drawn as its type: series drawn
+another way keep Office's, unless their own labels give one
The colour of the series' bars, line or area: a 6-digit hex colour such as "4472C4", or a colour of the
document's theme such as { theme: "accent2" }. Default is the next of the theme's accent colours
One colour for each bar, in the order of the categories. A bar without one, or with undefined, takes the series'
+colour. Only for series drawn as bars
Draws the series as columns, a line or an area, whatever the chart's type, as Word's "Combo" charts do. Default
+is the chart's type. A bar chart's series are all bars
+
Readonlyvalues
values:readonly (number|null)[]
One value for each category, in order. null leaves a gap. A series can have fewer values than there are categories
An axis of values: as ChartAxis, with its range, the interval between its labels, and their number format.
-On a 100% stacked chart, the range and interval are percentages.
An axis of values: as ChartAxis, with its range, the interval between its labels, and its scale. On a 100%
+stacked chart, the range and interval are percentages.
Writes the labels in hundreds, thousands, millions and so on. Default is the values as they are
+
+
OptionalReadonlyinterval?: number
The interval between the axis' labels and gridlines. Default is chosen from the values
+
OptionalReadonlylogarithmicBase?: number
+
Makes the scale logarithmic, with this base, from 2 to 1000: with 10, the labels are 1, 10, 100 and so on. Values
+of 0 or less can't be shown. Default is a linear scale
+
+
OptionalReadonlymaximum?: number
The highest value on the axis. Default is chosen from the values
OptionalReadonlyminimum?: number
The lowest value on the axis. Default is chosen from the values
-
-
-
OptionalReadonlynumberFormat?: string
-
How the axis' labels are written, as an Excel number format such as "#,##0", "0.0%" or "$#,##0"
How a series of a column, line or area chart is drawn, when it isn't drawn as the chart's type: as columns, a line
+or an area. A chart with series of more than one type is Word's "Combo" chart.
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index 21b4c26a1e..3bf62a0f9e 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 acc22e5d46..de5077f0b6 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 78a8b4b139..72617ef91a 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 3d6ffaaf82..48e6158619 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 0c4582265e..f458d4f5d1 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 edb11e0328..f1b811b45a 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 0bcbae6b20..ba76f9896a 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 c7df877984..32410bf1b7 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 ade6f72947..76a52783d2 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 d4b128bc9d..bd754efae4 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 1b7addceda..1bfcb39b9a 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 11a322427c..31a0da1744 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 5afc2df5a6..f85031b722 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 e5320ef544..68acf4ed49 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 7395c19960..afae44ae32 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 e265a21840..ecd378f9b3 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 647a0252ae..2b9246b186 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 4de503268a..06ce3ce409 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 e1f6c7092d..8fbedafcbc 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 978aa94bb0..f2481aa185 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 77ebf5e8c5..05833e3fee 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 9a157edd12..a32d7c7006 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 496e3ab748..5e93c3b6d9 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 597537a04e..3679b0d5b2 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 61c2909627..2106745700 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 5090518dd6..8ed9699814 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 a1e1a0bc3a..ea4239a804 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 c0a3b72a72..7e324e63f3 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 57bd9636ed..1cd1f1137c 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 a41e8fbff8..957ca481b3 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 8a9a095412..c696e62d7e 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 7cb6048498..f974ac7380 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 d4471a467b..9eff6be83c 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 0b59484740..6d88d0e1c5 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 321ccd3c7f..17740a4101 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 a795c3a7d9..ca27473e83 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 a94d0e8b1a..c48b46f28f 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 3ae55b9160..02e3a37b9a 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 c905344471..1495a9c483 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 35e945fc8c..e72b133ce7 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 29c73688b5..548a0ced0d 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.ShadingType.html b/api/variables/index.ShadingType.html
index e435df5e30..0fe8134881 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 a8b107776b..20efcb8ce8 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 9b4ee21691..6e529295e4 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 5fbd31f429..bdb4fd3323 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 908d4667bc..7d9f63ad48 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 1c75a53914..e73998b781 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 8cf294987d..1cbe64767e 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 a35c2e9268..fb2500384f 100644
--- a/usage/chart-axes.md
+++ b/usage/chart-axes.md
@@ -8,10 +8,11 @@ The axes are the lines along the sides of a chart, with the labels that say what
| --------------------- | --------------------------------------------------------------------------- |
| Column, line and area | `categoryAxis` along the bottom, and `valueAxis` up the left side |
| Bar | `categoryAxis` up the left side, and `valueAxis` along the bottom |
-| Scatter | `xAxis` along the bottom, and `yAxis` up the left side. Both are value axes |
+| Scatter and bubble | `xAxis` along the bottom, and `yAxis` up the left side. Both are value axes |
+| Radar | `categoryAxis` round the outside, and `valueAxis` up the first spoke |
| Pie and doughnut | None |
-A category axis shows the categories. A value axis shows numbers, and takes a range and a number format too.
+A category axis shows the categories. A value axis shows numbers, and takes a range and a scale too. A column, bar, line or area chart can have a second value axis, `secondaryValueAxis`, on the right: see [Combo Charts](usage/chart-combo.md#a-secondary-axis).
## Titles
@@ -27,7 +28,7 @@ new ChartRun({
});
```
-The title of an axis up the left side reads from bottom to top.
+The title of an axis up the left side reads from bottom to top. To give it a font of its own, give `title` its `text` and a `font`, such as `valueAxis: { title: { text: "Units", font: { italics: true } } }`.
## Range and Interval
@@ -43,9 +44,19 @@ valueAxis: { minimum: 0, maximum: 200, interval: 50 },
This labels the axis 0, 50, 100, 150 and 200. Give any of the three, and the application chooses the others. The `minimum` has to be less than the `maximum`, and the `interval` more than 0.
+## Logarithmic Scale
+
+`logarithmicBase` makes a value axis' scale logarithmic: each gridline is the one before it times the base. It suits values that grow many times over, such as 12, 95, 610 and 4,800:
+
+```ts
+valueAxis: { logarithmicBase: 10, minimum: 1 },
+```
+
+With base 10, the axis is labelled 1, 10, 100, 1,000 and so on. The base goes from `2` to `1000`. Values of 0 or less can't be shown on a logarithmic scale, so its `minimum` and `maximum` have to be above 0.
+
## Number Format
-`numberFormat` is how a value axis' labels are written, as an Excel number format:
+`numberFormat` is how an axis' labels are written, as an Excel number format:
| `numberFormat` | Value | Label |
| -------------- | ------ | -------- |
@@ -55,7 +66,89 @@ This labels the axis 0, 50, 100, 150 and 200. Give any of the three, and the app
| `"0%"` | 0.25 | 25% |
| `"0.0%"` | 0.125 | 12.5% |
-A percentage format multiplies by 100, as in Excel, so it suits values such as `0.25` for 25%. By default, labels are written as the values are.
+A percentage format multiplies by 100, as in Excel, so it suits values such as `0.25` for 25%. By default, labels are written as the values are. A category axis takes a number format too, for categories that are numbers or [dates](#dates).
+
+## Display Units
+
+`displayUnits` writes a value axis' labels in thousands, millions and so on, and names the units beside the axis:
+
+```ts
+valueAxis: { displayUnits: "thousands" },
+```
+
+This labels 25,000 as 25, and the axis "Thousands". The units are `"hundreds"`, `"thousands"`, `"tenThousands"`, `"hundredThousands"`, `"millions"`, `"tenMillions"`, `"hundredMillions"`, `"billions"` and `"trillions"`.
+
+## Dates
+
+When the categories are all `Date`s, the category axis is a date axis, as in Excel: it spaces the dates by how far apart they are, so a missing month leaves a gap.
+
+```ts
+new ChartRun({
+ type: "line",
+ categories: [new Date("2025-01-01"), new Date("2025-02-01"), new Date("2025-05-01")],
+ series: [{ name: "Sign-ups", values: [320, 410, 520] }],
+});
+```
+
+The dates are spaced by days, months or years, as Excel chooses:
+
+| The dates are all | Spaced by | Labelled, by default |
+| ------------------ | --------- | -------------------- |
+| The 1st of January | Years | `2025` |
+| The 1st of a month | Months | `Jan 2025` |
+| Any other day | Days | `31 Jan 2025` |
+
+`numberFormat` labels them in another format, such as `categoryAxis: { numberFormat: "mmm" }` for Jan, Feb and so on.
+
+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
+
+`reverseOrder: true` puts an axis' categories or values the other way round, as Word's "Categories in reverse order" does. A bar chart's first category is at the bottom, as in Word, so this puts it at the top:
+
+```ts
+categoryAxis: { reverseOrder: true },
+valueAxis: { crossesAt: "maximum" },
+```
+
+Reversing the categories moves the value axis to the other side too, as it crosses the category axis at its first category. `crossesAt: "maximum"` moves it back: see the next section.
+
+## Where the Axes Cross
+
+Each axis crosses the other one. By default, it crosses where the other axis is 0, or at its minimum when 0 isn't on it, so the value axis is on the left and the category axis at the bottom. `crossesAt` moves an axis:
+
+| `crossesAt` | The axis crosses the other one |
+| ------------------ | ---------------------------------------------------------------------------------------- |
+| `"auto"` (default) | At 0, or at its minimum |
+| `"minimum"` | At its minimum |
+| `"maximum"` | At its maximum |
+| A number | At that value, or on a value axis crossing categories, at that category's number, from 1 |
+| A `Date` | On a value axis crossing categories that are dates, at that date |
+
+```ts
+valueAxis: { crossesAt: "maximum" }, // The value axis on the right
+categoryAxis: { crossesAt: 50 }, // The category axis at 50, so the bars grow up or down from 50
+```
+
+## Label Rotation
+
+`labelRotation` turns an axis' labels, in degrees clockwise, from `-90` to `90`. `-45` slants them up to the right, which suits long category names:
+
+```ts
+categoryAxis: { labelRotation: -45 },
+```
+
+By default, the application turns the labels when they don't fit.
+
+## Fonts
+
+An axis' labels are 9 point text in dark grey, and its title 10 point. `font` changes the labels' font, and the title takes a font of its own:
+
+```ts
+categoryAxis: { font: { size: 11, bold: true } },
+```
+
+See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md).
## Gridlines
@@ -83,14 +176,20 @@ On a chart with `stacking: "percent"`, the value axis is labelled as percentages
## Options
-`categoryAxis` takes a `ChartAxis`, and `valueAxis`, `xAxis` and `yAxis` take a `ChartValueAxis`.
+`categoryAxis` takes a `ChartAxis`, and `valueAxis`, `secondaryValueAxis`, `xAxis` and `yAxis` take a `ChartValueAxis`.
-| Property | Type | Axes | Description |
-| -------------- | --------- | ---------- | ---------------------------------------------------------------------------------------------- |
-| `title` | `string` | All | The axis' title. Default none |
-| `visible` | `boolean` | All | Whether the axis and its labels are shown. Default `true` |
-| `gridlines` | `boolean` | All | Lines across the chart at each label. Default `true` for value axes, `false` for category axes |
-| `minimum` | `number` | Value axes | The lowest value on the axis. Default is chosen from the values |
-| `maximum` | `number` | Value axes | The highest value on the axis. Default is chosen from the values |
-| `interval` | `number` | Value axes | The step between labels and gridlines. Default is chosen from the values |
-| `numberFormat` | `string` | Value axes | An Excel number format, such as `"#,##0"`. Default is the values as they are |
+| Property | Type | Axes | Description |
+| ----------------- | ------------------------------------------------------------ | ---------- | ---------------------------------------------------------------------------------------------- |
+| `title` | `string` \| `ChartTitle` | All | The axis' title, or `{ text, font? }`. Default none |
+| `visible` | `boolean` | All | Whether the axis and its labels are shown. Default `true` |
+| `gridlines` | `boolean` | All | Lines across the chart at each label. Default `true` for value axes, `false` for category axes |
+| `numberFormat` | `string` | All | An Excel number format, such as `"#,##0"`. Default is the values as they are |
+| `reverseOrder` | `boolean` | All | Puts the categories or values the other way round. Default `false` |
+| `crossesAt` | `"auto"` \| `"minimum"` \| `"maximum"` \| `number` \| `Date` | All | Where the axis crosses the other one. Default `"auto"` |
+| `labelRotation` | `number` | All | Turns the labels, in degrees clockwise, from -90 to 90. Default is the application's choice |
+| `font` | `ChartFont` | All | The labels' font. Default 9 points |
+| `minimum` | `number` | Value axes | The lowest value on the axis. Default is chosen from the values |
+| `maximum` | `number` | Value axes | The highest value on the axis. Default is chosen from the values |
+| `interval` | `number` | Value axes | The step between labels and gridlines. Default is chosen from the values |
+| `logarithmicBase` | `number` | Value axes | Makes the scale logarithmic, with this base, from 2 to 1000. Default is a linear scale |
+| `displayUnits` | `ChartDisplayUnits` | Value axes | Writes the labels in thousands, millions and so on. Default is the values as they are |
diff --git a/usage/chart-bubble.md b/usage/chart-bubble.md
new file mode 100644
index 0000000000..80f62d1d03
--- /dev/null
+++ b/usage/chart-bubble.md
@@ -0,0 +1,69 @@
+# Bubble Charts
+
+A bubble chart is a scatter chart whose points are bubbles of different sizes, so it shows three numbers for each point: where it is across, where it is up, and how big it is.
+
+[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
+
+## A Bubble Chart
+
+```ts
+new ChartRun({
+ type: "bubble",
+ title: "Markets",
+ series: [
+ {
+ name: "Europe",
+ points: [
+ { x: 12, y: 4.5, size: 740 },
+ { x: 18, y: 3.1, size: 330 },
+ ],
+ },
+ { name: "Asia", points: [{ x: 24, y: 6.8, size: 1400 }] },
+ ],
+ xAxis: { title: "Market share (%)" },
+ yAxis: { title: "Growth (%)" },
+});
+```
+
+- Like a [scatter chart](usage/chart-scatter.md), a bubble chart has no categories. Each series has `points`, and each point has an `x`, a `y` and a `size`.
+- Sizes are compared with each other: the biggest bubble is drawn at Office's largest size, and the others in proportion. They can't be negative.
+- Bubbles are drawn in their series' colour, a quarter see-through, so bubbles behind them show.
+
+## Bubble Sizes
+
+- `bubbleScale` makes every bubble bigger or smaller, as a percentage of Office's size, from `0` to `300`. The default is `100`.
+- `sizeRepresents` says whether a point's `size` is the bubble's area (`"area"`, the default) or its width (`"width"`). By area, a bubble of size 4 looks twice as wide as one of size 1; by width, four times as wide.
+
+```ts
+bubbleScale: 60,
+sizeRepresents: "width",
+```
+
+## Labels
+
+A bubble's label can show its size, as well as what any label shows:
+
+```ts
+dataLabels: { bubbleSize: true },
+```
+
+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) |
+
+[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-colors.md b/usage/chart-colors.md
index a45bc39cc3..e8f2e05117 100644
--- a/usage/chart-colors.md
+++ b/usage/chart-colors.md
@@ -35,7 +35,17 @@ series: [
],
```
-The colour is the colour of the series' bars, line, area or points.
+The colour is the colour of the series' bars, line, area, points or bubbles. Bubbles are drawn in it a quarter see-through, as Office draws them. A line can have a colour of its own too, apart from its markers: see [Lines](usage/chart-line-and-area.md#lines).
+
+## Bar Colours
+
+A series of bars takes `colors`, with a colour for single bars, in the order of the categories:
+
+```ts
+series: [{ name: "Tickets", values: [42, 57, 38, 71], colors: [undefined, undefined, undefined, "70AD47"] }],
+```
+
+A bar without a colour, or with `undefined`, keeps the series' colour. See [Column and Bar Charts](usage/chart-column-and-bar.md#bar-colours).
## Slice Colours
@@ -49,4 +59,4 @@ A slice without a colour, or with `undefined`, keeps the theme's colour. See [Pi
## The Rest of the Chart
-The chart's background, text, axes and gridlines are in the look Word gives a new chart: a white background, dark grey text and light grey lines, from the theme's `light1` and `dark1` colours.
+The chart's background, text, axes and gridlines are in the look Word gives a new chart: a white background, dark grey text and light grey lines, from the theme's `light1` and `dark1` colours. [Chart Fonts and Fills](usage/chart-fonts-and-fills.md) shows how to give the text, the background and the border colours of their own.
diff --git a/usage/chart-column-and-bar.md b/usage/chart-column-and-bar.md
index 16ad127148..0574ca4919 100644
--- a/usage/chart-column-and-bar.md
+++ b/usage/chart-column-and-bar.md
@@ -86,23 +86,59 @@ The defaults are Office's:
| `gapWidth` | `219` | `182` | `150` |
| `overlap` | `-27` | `0` | `100`, and can't change |
+## Bar Colours
+
+Each series' bars take its colour. `colors` gives single bars colours of their own, in the order of the categories, such as to pick out the best result:
+
+```ts
+new ChartRun({
+ type: "column",
+ title: "Tickets closed",
+ categories: ["Ana", "Ben", "Cai", "Dee"],
+ series: [{ name: "Tickets", values: [42, 57, 38, 71], colors: [undefined, undefined, undefined, "70AD47"] }],
+});
+```
+
+A bar without a colour, or with `undefined`, keeps the series' colour. [Chart Colours](usage/chart-colors.md) explains the colours a chart can take.
+
+## Lines on a Column Chart
+
+A column chart's series can be drawn as lines or areas too, such as a target line over the columns, and against a second value axis. See [Combo Charts](usage/chart-combo.md).
+
## Options
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)[]` | 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 [Chart Data](usage/chart-data.md) |
-| `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` | 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) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.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` | `"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) |
+
+### 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) |
diff --git a/usage/chart-combo.md b/usage/chart-combo.md
new file mode 100644
index 0000000000..7cf8acd781
--- /dev/null
+++ b/usage/chart-combo.md
@@ -0,0 +1,93 @@
+# Combo Charts
+
+A combo chart draws some series one way and some another, such as sales as columns and a target as a line. A series can also be drawn against a second value axis, on the right, when its numbers are on another scale, such as a percentage beside a number of units. Word calls these charts "Combo" charts.
+
+[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
+
+## Columns and a Line
+
+Give a series a `type` to draw it as `"column"`, `"line"` or `"area"`, whatever the chart's own `type`:
+
+```ts
+new ChartRun({
+ type: "column",
+ title: "Sales and target",
+ categories: ["Jan", "Feb", "Mar", "Apr"],
+ series: [
+ { name: "Sales", values: [120, 135, 150, 170] },
+ { name: "Target", values: [130, 140, 150, 160], type: "line" },
+ ],
+});
+```
+
+- Series without a `type` are drawn as the chart's `type`.
+- Areas are drawn behind columns, and lines in front of both, whatever the order of the series. Series on the secondary axis are drawn in front of those on the primary axis.
+- Column, line and area charts can have series of each type. A bar chart's series are all bars, as its bars run the other way.
+
+The options of each way of drawing a series work as they do on its own chart. A line series takes `markers`, `smooth` and `line`, as on a [line chart](usage/chart-line-and-area.md), and a column series takes `colors`, as on a [column chart](usage/chart-column-and-bar.md#bar-colours). The chart's `gapWidth` and `overlap` are for its columns when its `type` is `"column"`, and its `markers` and `smooth` are for its lines when its `type` is `"line"`.
+
+## A Secondary Axis
+
+`axis: "secondary"` draws a series against a second value axis, on the right side of the chart:
+
+```ts
+new ChartRun({
+ type: "column",
+ title: "Sales and growth",
+ categories: ["Jan", "Feb", "Mar", "Apr"],
+ series: [
+ { name: "Sales", values: [120, 135, 150, 170] },
+ { name: "Growth", values: [4, 12.5, 11.1, 13.3], type: "line", axis: "secondary" },
+ ],
+ valueAxis: { title: "Units" },
+ secondaryValueAxis: { title: "Growth (%)" },
+});
+```
+
+- `secondaryValueAxis` takes the same options as `valueAxis`, such as a title, a range and a number format. See [Chart Axes](usage/chart-axes.md).
+- The secondary axis has no gridlines by default, so they don't cross the primary axis' gridlines.
+- At least one series has to be on the primary axis.
+- A bar chart's secondary axis runs along the top.
+- The secondary axis stays on the other side from the primary one when the categories are in [reverse order](usage/chart-axes.md#reverse-order).
+
+A series drawn as columns on the secondary axis is drawn in front of those on the primary axis, in the same place, so the columns cover each other. Draw series on the secondary axis as lines, as in the example above.
+
+## Labels
+
+A chart's `dataLabels` are on every series, but their `position` is for the series drawn as the chart's `type`, as each way of drawing a series has positions of its own. The others keep Office's positions, unless their own `dataLabels` give one:
+
+```ts
+dataLabels: { value: true, position: "insideEnd" },
+series: [
+ { name: "Sales", values: [120, 135, 150, 170] },
+ { name: "Target", values: [130, 140, 150, 160], type: "line", dataLabels: { value: true, position: "above" } },
+],
+```
+
+See [Where the Labels Go](usage/chart-data-labels.md#where-the-labels-go).
+
+## Stacking
+
+`stacking` stacks the series drawn as the chart's `type`. The others aren't stacked, so a line can show the total of stacked columns:
+
+```ts
+new ChartRun({
+ type: "column",
+ categories: ["Q1", "Q2", "Q3"],
+ series: [
+ { name: "North", values: [40, 45, 50] },
+ { name: "South", values: [30, 35, 30] },
+ { name: "Total", values: [70, 80, 80], type: "line" },
+ ],
+ stacking: "stacked",
+});
+```
+
+## Options
+
+| Property | Type | Notes | Description |
+| -------------------- | -------------------------------------- | -------- | ----------------------------------------------------------------------------- |
+| `series[].type` | `"column"` \| `"line"` \| `"area"` | Optional | How the series is drawn. Default is the chart's `type`. Not on bar charts |
+| `series[].axis` | `"primary"` \| `"secondary"` | Optional | The value axis the series is drawn against. Default `"primary"` |
+| `secondaryValueAxis` | `ChartValueAxis` | Optional | The secondary value axis, on the right. See [Chart Axes](usage/chart-axes.md) |
+| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | Stacks the series drawn as the chart's `type`. Default `"none"` |
diff --git a/usage/chart-compatibility.md b/usage/chart-compatibility.md
index e5d0b13255..242b2d2e0d 100644
--- a/usage/chart-compatibility.md
+++ b/usage/chart-compatibility.md
@@ -13,11 +13,16 @@ Applications draw a chart from the data in the chart part, so they don't need to
## Checks
-?> Word itself hasn't been checked yet. The charts and their workbooks pass the Open XML SDK validator, Microsoft's own check, for every version of Office since 2010, and are drawn as intended by LibreOffice and Apple Pages.
+?> Word itself hasn't been checked yet. The charts and their workbooks pass the Open XML SDK validator, Microsoft's own check, for every version of Office since 2010, and are drawn as intended by LibreOffice and Apple Pages, apart from the differences below.
## LibreOffice
-LibreOffice (checked with version 26.8) draws every chart as intended, and opens the workbooks in Calc.
+LibreOffice (checked with version 26.8) draws every chart as intended, and opens the workbooks in Calc, but:
+
+- It doesn't write an axis' labels in its `displayUnits`, or name the units beside it.
+- 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.
## Apple Pages
@@ -29,6 +34,13 @@ Apple Pages (checked with version 15.1) draws the charts, but:
- It puts the last series in front in an area chart that isn't stacked, where LibreOffice puts the first.
- It divides a value axis into four equal steps, such as 0, 43, 85, 128 and 170, unless it has an `interval`.
- It narrows a pie or doughnut chart to the pie, so a floating one moves away from the right margin. Word does this with its own pie charts too.
+- It spaces dates evenly, as it does other categories, and labels them in their own format, not the axis' `numberFormat`.
+- It doesn't draw bars' own `colors`: each bar is its series' colour.
+- It keeps the axes where they are by default, whatever their `crossesAt`.
+- It reverses the order of categories, but not of values.
+- 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.
## Patching
diff --git a/usage/chart-data-labels.md b/usage/chart-data-labels.md
index 6a7cc69813..6cb8ab57d0 100644
--- a/usage/chart-data-labels.md
+++ b/usage/chart-data-labels.md
@@ -17,12 +17,13 @@ This writes each column's value above it.
Turn on what each label shows:
-| Option | Shows | Charts |
-| ------------ | ------------------------------------ | ---------------- |
-| `value` | The value | All |
-| `category` | The category, or a scatter point's x | All |
-| `seriesName` | The series' name | All |
-| `percentage` | The slice's percentage of the whole | Pie and doughnut |
+| Option | Shows | Charts |
+| ------------ | ---------------------------------------------- | ---------------- |
+| `value` | The value | All |
+| `category` | The category, or a scatter or bubble point's x | All |
+| `seriesName` | The series' name | All |
+| `percentage` | The slice's percentage of the whole | Pie and doughnut |
+| `bubbleSize` | The bubble's size | Bubble |
Turn on more than one to show them all in each label:
@@ -32,21 +33,71 @@ dataLabels: { category: true, percentage: true },
## Where the Labels Go
-The labels go where Office puts them:
+By default, the labels go where Office puts them. `position` puts them somewhere else:
-| Chart | Labels |
-| ---------------- | ------------------------------------------------------------------- |
-| Column and bar | Just past the end of each bar, or in its middle when stacked |
-| Line and scatter | To the right of each point |
-| Area | Where the application puts them |
-| Pie | Where they fit best, with a line to a slice they're moved away from |
-| Doughnut | On each slice of each ring |
+```ts
+dataLabels: { value: true, position: "insideEnd" },
+```
+
+Each type of chart has its own positions, and the first is where Office puts the labels:
+
+| Chart | `position` |
+| ------------------------ | ---------------------------------------------------------------------------------------------------------- |
+| Column and bar | `"outsideEnd"` (just past the end of each bar), `"insideEnd"`, `"center"`, `"insideBase"` |
+| Column and bar, stacked | `"center"`, `"insideEnd"`, `"insideBase"` |
+| Line, scatter and bubble | `"right"`, `"left"`, `"above"`, `"below"`, `"center"` |
+| Pie | `"bestFit"` (with a line to a slice a label is moved away from), `"insideEnd"`, `"outsideEnd"`, `"center"` |
+| Area, doughnut and radar | None: the application puts them |
+
+Word reports a document whose labels are somewhere their chart can't have them as needing repair, so `new ChartRun(...)` throws an error for a position a chart doesn't have. In a [combo chart](usage/chart-combo.md#labels), the chart's `position` is for the series drawn as its `type`, and the others keep Office's positions.
+
+## Number Format
+
+`numberFormat` is how the labels' values are written, as an Excel number format, as for an [axis](usage/chart-axes.md#number-format):
+
+```ts
+dataLabels: { value: true, numberFormat: "#,##0" },
+```
+
+On a pie or doughnut chart, it is how the percentages are written too: `"0.0%"` writes 12.5%.
+
+## Font
+
+Labels are 9 point text in dark grey. `font` changes it, such as white bold labels inside dark bars:
+
+```ts
+dataLabels: { value: true, position: "insideEnd", font: { color: "FFFFFF", bold: true } },
+```
+
+See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md).
+
+## Each Series' Labels
+
+A series' own `dataLabels` replace the chart's for that series, and `dataLabels: false` gives it none:
+
+```ts
+new ChartRun({
+ type: "column",
+ categories: ["Q1", "Q2", "Q3", "Q4"],
+ series: [
+ { name: "2024", values: [120, 135, 150, 170], dataLabels: false },
+ { name: "2025", values: [140, 150, 165, 180] },
+ ],
+ dataLabels: { value: true },
+});
+```
+
+Here only the 2025 columns have labels.
## Options
-| Property | Type | Notes | Description |
-| ------------ | --------- | -------- | ---------------------------------------------------------------- |
-| `value` | `boolean` | Optional | The value. Default `false` |
-| `category` | `boolean` | Optional | The category, or a scatter point's x. Default `false` |
-| `seriesName` | `boolean` | Optional | The series' name. Default `false` |
-| `percentage` | `boolean` | Optional | Pie and doughnut charts: the slice's percentage. Default `false` |
+| Property | Type | Notes | Description |
+| -------------- | ------------------------ | -------- | --------------------------------------------------------------------- |
+| `value` | `boolean` | Optional | The value. Default `false` |
+| `category` | `boolean` | Optional | The category, or a scatter or bubble point's x. Default `false` |
+| `seriesName` | `boolean` | Optional | The series' name. Default `false` |
+| `percentage` | `boolean` | Optional | Pie and doughnut charts: the slice's percentage. Default `false` |
+| `bubbleSize` | `boolean` | Optional | Bubble charts: the bubble's size. Default `false` |
+| `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 |
diff --git a/usage/chart-data.md b/usage/chart-data.md
index 5dd00a045b..fa5dfdf46b 100644
--- a/usage/chart-data.md
+++ b/usage/chart-data.md
@@ -1,10 +1,10 @@
# Chart Data
-A chart's data is its categories and its series, or for a scatter chart, its points. This page shows how to give it, and how it is saved in the document.
+A chart's data is its categories and its series, or for a scatter or bubble chart, its points. This page shows how to give it, and how it is saved in the document.
## Categories and Series
-Column, bar, line, area, pie and doughnut charts take their data as a table: a row for each category, and a column for each series.
+Column, bar, line, area, pie, doughnut and radar charts take their data as a table: a row for each category, and a column for each series.
```ts
new ChartRun({
@@ -26,13 +26,23 @@ is this table:
| **Q3** | 150 | 165 |
| **Q4** | 170 | |
-- `categories` are the labels along the category axis, or the slices of a pie. They are text, or numbers such as years.
+- `categories` are the labels along the category axis, the slices of a pie, or the spokes of a radar chart. They are text, or numbers such as years. On a column, bar, line or area chart they can be dates too: see [Dates](#dates).
- Each series has a `name`, which the legend shows, and `values`: one value for each category, in the same order.
- `null` is an empty cell, which leaves a gap: no bar, a break in a line, or no slice.
- A series can have fewer values than there are categories. The categories after its last value are gaps.
Each series can also have a `color`. See [Chart Colours](usage/chart-colors.md).
+## Dates
+
+When a column, bar, line or area chart's categories are all `Date`s, the category axis spaces them by date, as Excel does, and labels them as dates:
+
+```ts
+categories: [new Date("2025-01-01"), new Date("2025-02-01"), new Date("2025-05-01")],
+```
+
+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.
+
## 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`:
@@ -49,6 +59,8 @@ series: [
],
```
+A [bubble chart](usage/chart-bubble.md)'s points have a `size` too: `{ x: 150, y: 50, size: 12 }`.
+
## Editing the Data in Word
Each chart's data is saved twice: in the chart, which Word draws it from, and in an Excel workbook inside the document. **Edit Data** in Word opens the workbook in Excel, and Word redraws the chart when the data changes.
@@ -56,19 +68,24 @@ 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.
-- For a scatter chart, each series has two columns: `X` above its x values, and its name above its y values.
+- 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.
+- Dates are numbers in the sheet, in a date format, as Excel keeps them.
## Mistakes
`new ChartRun(...)` throws an error when an option is wrong, so the mistake shows up where the chart is made. It throws when:
- a chart has no series, or no categories;
-- a category isn't text or a finite number;
+- a category isn't text or a finite number, or only some of the categories are dates;
- 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;
-- a pie or doughnut chart has a negative value, or a series more `colors` than there are categories;
-- a scatter series has no points, or a point's `x` or `y` isn't a finite number;
+- a pie or doughnut chart has a negative value;
+- a series has more `colors` than there are categories;
+- 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;
- 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-fonts-and-fills.md b/usage/chart-fonts-and-fills.md
new file mode 100644
index 0000000000..f65c32e499
--- /dev/null
+++ b/usage/chart-fonts-and-fills.md
@@ -0,0 +1,77 @@
+# Chart Fonts and Fills
+
+A chart's text is in the theme's body font, in dark grey, and the chart has a white background with a thin grey border, as Word draws a new chart. This page shows how to change them.
+
+## The Chart's Font
+
+`font` sets the font of all the chart's text: its title, legend, axes and labels.
+
+```ts
+new ChartRun({
+ type: "column",
+ categories: ["Q1", "Q2", "Q3", "Q4"],
+ series: [{ name: "Sales", values: [120, 135, 150, 170] }],
+ font: { name: "Georgia", color: "404040" },
+});
+```
+
+| Property | Type | Description |
+| --------- | ------------------------ | -------------------------------------------------------------------------------------- |
+| `name` | `string` | The typeface, such as `"Arial"`. Default is the theme's body font |
+| `bold` | `boolean` | Bold text. Default `false` |
+| `italics` | `boolean` | Italic text. Default `false` |
+| `color` | `string` \| `ThemeColor` | A hex colour, or a theme colour such as `{ theme: "dark1" }`. Default is dark grey |
+| `size` | `number` | Size in points. Not on the chart's `font`, as each piece of text has a size of its own |
+
+## A Font for Each Piece of Text
+
+The title, the legend, each axis and the labels take a `font` of their own, with a `size` too. It is applied over the chart's `font`, so give only what is different:
+
+| Text | Option | Default size |
+| ----------- | ----------------------------------------------- | ------------ |
+| Title | `title: { text, font }` | 14 points |
+| Legend | `legend: { font }` | 9 points |
+| Axis labels | `categoryAxis: { font }`, `valueAxis: { font }` | 9 points |
+| Axis titles | `valueAxis: { title: { text, font } }` | 10 points |
+| Data labels | `dataLabels: { font }` | 9 points |
+
+```ts
+new ChartRun({
+ type: "line",
+ title: { text: "Rainfall", font: { size: 18, bold: true } },
+ categories: ["Jan", "Feb", "Mar"],
+ series: [{ name: "2025", values: [78, 62, 55] }],
+ font: { name: "Georgia" },
+ legend: { position: "top", font: { italics: true } },
+ valueAxis: { title: { text: "mm", font: { italics: true } }, font: { size: 8 } },
+});
+```
+
+Here every piece of text is in Georgia, the title is 18 point bold, and the value axis' labels are 8 point.
+
+## The Chart Area and the Plot Area
+
+The chart area is the whole chart, and the plot area is the part inside the axes. `chartArea` and `plotArea` give each a `fill` and a `border`:
+
+```ts
+chartArea: { fill: "F7F9FC", border: { color: { theme: "accent1" }, width: 1.5 } },
+plotArea: { fill: "FFFFFF" },
+```
+
+- `fill` is a hex colour, a theme colour, or `"none"` for no fill.
+- `border` is `{ color?, width?, dash? }`, with its width in points, or `"none"` for no border. A dash is a pattern such as `"dash"`: see [Lines](usage/chart-line-and-area.md#lines).
+
+| Area | Default fill | Default border |
+| ----------- | ------------ | ------------------------------- |
+| `chartArea` | White | A 0.75 point line in light grey |
+| `plotArea` | None | None |
+
+`chartArea: { fill: "none", border: "none" }` leaves only the chart, on the page behind it.
+
+## Options
+
+| Property | Type | Notes | Description |
+| ----------- | --------------------------- | -------- | -------------------------------------------------------------------------- |
+| `font` | `ChartFont`, without `size` | Optional | The font of all the chart's text |
+| `chartArea` | `ChartAreaStyle` | Optional | `{ fill?, border? }` of the whole chart. Default a white fill, grey border |
+| `plotArea` | `ChartAreaStyle` | Optional | `{ fill?, border? }` of the plot. Default neither |
diff --git a/usage/chart-line-and-area.md b/usage/chart-line-and-area.md
index 707c8efb6c..e458685cf0 100644
--- a/usage/chart-line-and-area.md
+++ b/usage/chart-line-and-area.md
@@ -20,28 +20,73 @@ new ChartRun({
A `null` value leaves a gap in its line.
-## Markers and Smooth Lines
+## Markers
-A line chart can mark each point, and draw its lines as curves:
+`markers: true` draws a circle at each point, as Word's "Line with Markers" does. There are no markers by default.
-- `markers: true` draws a circle at each point, as Word's "Line with Markers" does.
-- `smooth: true` draws each line as a smooth curve through its points.
-
-Both are `false` by default.
+Markers can have a shape and size of their own. Give `markers` a `shape`, a `size` in points, or both:
```ts
new ChartRun({
type: "line",
categories: ["Mon", "Tue", "Wed", "Thu", "Fri"],
series: [{ name: "High", values: [21, 23, 25, 24, 22] }],
- markers: true,
- smooth: true,
+ markers: { shape: "diamond", size: 8 },
});
```
+| `shape` | Draws |
+| -------------------- | ---------------------- |
+| `"circle"` (default) | A circle |
+| `"square"` | A square |
+| `"diamond"` | A diamond |
+| `"triangle"` | A triangle |
+| `"x"` | An × |
+| `"plus"` | A + |
+| `"star"` | An asterisk |
+| `"dash"` | A short horizontal bar |
+| `"dot"` | A small dot |
+
+`size` goes from `2` to `72`. The default is `5`.
+
+## Lines
+
+`smooth: true` draws each line as a smooth curve through its points. Lines are straight by default.
+
+A series' `line` gives its line a colour, width or dash pattern of its own, such as a dashed line for a target:
+
+```ts
+series: [
+ { name: "Sales", values: [120, 135, 150, 170] },
+ { name: "Target", values: [130, 140, 150, 160], line: { dash: "dash", width: 1.5 } },
+],
+```
+
+- `width` is in points, from `0` to `1584`. Lines are 2.25 points wide by default.
+- `color` is the line's colour. By default it is the series' `color`, which its markers keep.
+- `dash` is one of the patterns shapes' lines have: `"solid"` (the default), `"dot"`, `"dash"`, `"longDash"`, `"dashDot"`, `"longDashDot"`, `"longDashDotDot"`, `"shortDash"`, `"shortDot"`, `"shortDashDot"` and `"shortDashDotDot"`.
+
+## Each Series' Own Markers and Lines
+
+A series' own `markers` and `smooth` replace the chart's, so one series can be different:
+
+```ts
+new ChartRun({
+ type: "line",
+ categories: ["Mon", "Tue", "Wed", "Thu", "Fri"],
+ series: [
+ { name: "High", values: [21, 23, 25, 24, 22] },
+ { name: "Low", values: [12, 13, 15, 14, 13], markers: { shape: "square" }, smooth: true },
+ ],
+ markers: true,
+});
+```
+
+Here the highs have circles and straight lines, and the lows squares and a smooth line.
+
## An Area Chart
-An area chart takes the same options as a line chart, with `type: "area"` and without `markers` and `smooth`:
+An area chart takes the same options as a line chart, with `type: "area"` and without markers or lines:
```ts
new ChartRun({
@@ -57,7 +102,7 @@ new ChartRun({
});
```
-Each area reaches both sides of the chart, as in Word's and Excel's area charts. Areas that aren't stacked can hide each other, so stacking often makes an area chart clearer.
+Each area reaches both sides of the chart, as in Word's and Excel's area charts. When some series are drawn as columns or lines, as in a [combo chart](usage/chart-combo.md), the areas stop at the middle of the first and last categories, so the categories line up with the columns. Areas that aren't stacked can hide each other, so stacking often makes an area chart clearer.
## Stacking
@@ -71,23 +116,44 @@ Each area reaches both sides of the chart, as in Word's and Excel's area charts.
On a 100% stacked chart, the value axis is labelled as percentages. See [Chart Axes](usage/chart-axes.md#charts-stacked-to-100).
+A line or area chart's series can be drawn as columns too, and against a second value axis. See [Combo Charts](usage/chart-combo.md).
+
## Options
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)[]` | 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 [Chart Data](usage/chart-data.md) |
-| `stacking` | `"none"` \| `"stacked"` \| `"percent"` | Optional | See [Stacking](#stacking). Default `"none"` |
-| `markers` | `boolean` | Optional | Line charts: a circle at each point. Default `false` |
-| `smooth` | `boolean` | Optional | Line charts: curved lines. Default `false` |
-| `title` | `string` | 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) |
-| `dataLabels` | `ChartDataLabels` | Optional | See [Chart Data Labels](usage/chart-data-labels.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` | `"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) |
+
+### 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) |
diff --git a/usage/chart-pie-and-doughnut.md b/usage/chart-pie-and-doughnut.md
index a681efa12e..36140b3161 100644
--- a/usage/chart-pie-and-doughnut.md
+++ b/usage/chart-pie-and-doughnut.md
@@ -58,7 +58,7 @@ A slice without a colour, or with `undefined`, keeps the theme's colour. A categ
dataLabels: { percentage: true },
```
-[Chart Data Labels](usage/chart-data-labels.md) shows what else a label can show.
+[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`.
## The First Slice
@@ -72,14 +72,14 @@ These are all the options of a pie or doughnut chart. Each links to the page tha
| ----------------- | ------------------------ | -------- | ------------------------------------------------------------------------------------------------------ |
| `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? }`. A pie chart has one, and a doughnut chart a ring for each |
+| `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` | Optional | See [Chart Titles and Legends](usage/chart-titles-and-legends.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) |
-Pie and doughnut charts have no axes.
+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.
diff --git a/usage/chart-radar.md b/usage/chart-radar.md
new file mode 100644
index 0000000000..ae70c52ed4
--- /dev/null
+++ b/usage/chart-radar.md
@@ -0,0 +1,65 @@
+# Radar Charts
+
+A radar chart has a spoke for each category, and draws each series as a line around the spokes. Use it to compare several qualities at once, such as a team's skills.
+
+[Charts](usage/charts.md) shows how to import `ChartRun` and add a chart to a document.
+
+## A Radar Chart
+
+```ts
+new ChartRun({
+ type: "radar",
+ title: "Skills",
+ categories: ["Speed", "Strength", "Range", "Stamina", "Skill"],
+ series: [
+ { name: "Alice", values: [4, 3, 5, 2, 4] },
+ { name: "Bob", values: [3, 5, 2, 4, 3] },
+ ],
+ valueAxis: { minimum: 0, maximum: 5, interval: 1 },
+});
+```
+
+- The first category's spoke points up, and the others go round clockwise.
+- Each value is a point on its category's spoke: the further out, the bigger the value. The rings are the value axis' gridlines.
+- A `null` value leaves a gap in its line.
+
+## Markers and Filled Radar Charts
+
+- `markers: true` draws a circle at each point, as Word's "Radar with Markers" does. Markers can have a shape and size of their own. See [Markers](usage/chart-line-and-area.md#markers).
+- `filled: true` fills the area inside each series' line, as Word's "Filled Radar" does. A filled radar chart has no markers, and its series no lines.
+
+```ts
+new ChartRun({
+ type: "radar",
+ categories: ["Speed", "Strength", "Range", "Stamina", "Skill"],
+ series: [{ name: "Alice", values: [4, 3, 5, 2, 4] }],
+ filled: true,
+});
+```
+
+## Axes
+
+- `categoryAxis` is the labels at the end of the spokes, and the spokes themselves, which are its gridlines.
+- `valueAxis` runs up the first spoke. Its gridlines are the rings, and it takes a range and a number format as any value axis does.
+
+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) |
+
+[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 5507183d15..0c59fee2ac 100644
--- a/usage/chart-scatter.md
+++ b/usage/chart-scatter.md
@@ -41,6 +41,14 @@ A scatter chart draws a circle at each point, and doesn't join them:
- `markers: false` leaves out the circles.
- `lines` joins each series' points, in order: `"none"` (the default), `"straight"` or `"smooth"`.
+Markers can have a shape and size, as on a line chart, and a series' `line` a colour, width and dash pattern. A series' own `markers` replace the chart's. See [Markers](usage/chart-line-and-area.md#markers) and [Lines](usage/chart-line-and-area.md#lines).
+
+```ts
+series: [
+ { name: "Group A", points: [{ x: 150, y: 50 }, { x: 165, y: 61 }], markers: { shape: "triangle", size: 7 } },
+],
+```
+
A smooth line without markers draws a curve, such as a graph of a formula:
```ts
@@ -60,17 +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? }`, where a point is `{ x, y }`. See [Chart Data](usage/chart-data.md) |
-| `markers` | `boolean` | Optional | A circle 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` | 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? }`, 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) |
+
+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-size-and-position.md b/usage/chart-size-and-position.md
index 3dae6c041a..bd41fb032f 100644
--- a/usage/chart-size-and-position.md
+++ b/usage/chart-size-and-position.md
@@ -105,7 +105,9 @@ new Table({
## Alternative Text
-Give a chart `altText` so screen readers can describe it:
+A chart is described for screen readers from its type, title and data, such as "Column chart, Sales by quarter. Sales: Q1 120, Q2 135, Q3 150, Q4 170." Long descriptions are cut at 1,000 characters.
+
+`altText` gives the chart a description of your own, which is better when the chart has a point to make:
```ts
altText: {
@@ -114,12 +116,15 @@ altText: {
},
```
-`name` is required, and `description` and `title` are optional. The description is what a screen reader reads, so say what the chart shows.
+`name` is required, and `description` and `title` are optional. A chart with `altText` but no `description` is still described from its data.
+
+`decorative: true` marks a chart as decorative, as Word's "Mark as decorative" does, so screen readers skip it, and it isn't described.
## Options
-| Property | Type | Notes | Description |
-| ---------------- | ---------------------- | -------- | ----------------------------------------------------------------- |
-| `transformation` | `{ width, height }` | Optional | Size in pixels. Default is 576 by 336 |
-| `floating` | `IFloating` | Optional | Floats the chart. See [floating images](usage/images.md#floating) |
-| `altText` | `DocPropertiesOptions` | Optional | `{ name, description?, title? }` for screen readers |
+| Property | Type | Notes | Description |
+| ---------------- | ---------------------- | -------- | --------------------------------------------------------------------------------------- |
+| `transformation` | `{ width, height }` | Optional | Size in pixels. Default is 576 by 336 |
+| `floating` | `IFloating` | Optional | Floats the chart. See [floating images](usage/images.md#floating) |
+| `altText` | `DocPropertiesOptions` | Optional | `{ name, description?, title? }` for screen readers. Default is described from the data |
+| `decorative` | `boolean` | Optional | Marks the chart as decorative, so screen readers skip it. Default `false` |
diff --git a/usage/chart-titles-and-legends.md b/usage/chart-titles-and-legends.md
index d07b1ca4dc..5d4d567ebe 100644
--- a/usage/chart-titles-and-legends.md
+++ b/usage/chart-titles-and-legends.md
@@ -17,6 +17,14 @@ new ChartRun({
Each line of the text is a line of the title, so `"Sales by quarter\n2024"` is a title of two lines.
+To give the title a font of its own, give `title` its `text` and a `font`:
+
+```ts
+title: { text: "Sales by quarter", font: { size: 18, bold: true, color: "1F4E79" } },
+```
+
+The title is 14 point text by default. See [Chart Fonts and Fills](usage/chart-fonts-and-fills.md).
+
## Legend
The legend is below the chart by default. It shows each series' name, or on a pie or doughnut chart, each category's.
@@ -35,6 +43,8 @@ The legend is below the chart by default. It shows each series' name, or on a pi
legend: { position: "right" },
```
+The legend takes a `font` too, such as `legend: { position: "right", font: { size: 10 } }`. Its text is 9 point by default.
+
`legend: false` leaves out the legend. A chart with one series often doesn't need one, as its title can say what the series is:
```ts
@@ -49,7 +59,7 @@ new ChartRun({
## Options
-| Property | Type | Notes | Description |
-| -------- | ------------------------ | -------- | ------------------------------------------------------------------------------ |
-| `title` | `string` | Optional | The title, above the chart. Each line is a line of the title. Default none |
-| `legend` | `false` \| `ChartLegend` | Optional | `{ position? }`, 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? }`, or `false` for no legend. Default is a legend below the chart |
diff --git a/usage/charts.md b/usage/charts.md
index 269e49d573..e164908dc7 100644
--- a/usage/charts.md
+++ b/usage/charts.md
@@ -53,30 +53,41 @@ Every chart needs a `type` and its `series`, and every type but a scatter chart
`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) |
-| `"scatter"` | Points, each with its own x and y | Show how two numbers relate | [Scatter Charts](usage/chart-scatter.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) |
+| `"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) |
+
+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) |
-| Change a series' colour | `color`, such as `"1F4E79"` or a theme colour | [Chart Colours](usage/chart-colors.md) |
-| Add a title, or move or hide the legend | `title` and `legend` | [Chart Titles and Legends](usage/chart-titles-and-legends.md) |
-| Name an axis, or set its range or its format | `categoryAxis` and `valueAxis` | [Chart Axes](usage/chart-axes.md) |
-| 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) |
-| Describe a chart for screen readers | `altText` | [Chart Size and Position](usage/chart-size-and-position.md) |
-| 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) |
+| 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) |
+| 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
@@ -107,8 +118,16 @@ In a page without a bundler, load the charts after `docx`: `dist/charts.umd.cjs`
### Charts
-One chart of each type, with a small chart in the header, two charts in a table and one floating beside its text.
+A chart of each of the first types, with a small chart in the header, two charts in a table and one floating beside its text.
[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/121-charts.ts ":include")
_Source: https://github.com/dolanmiu/docx/blob/master/demo/121-charts.ts_
+
+### Chart Options
+
+A combo chart with a secondary axis, dates, axes in reverse and on a logarithmic scale, labels and colours, fonts and fills, and radar and bubble charts.
+
+[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/122-chart-options.ts ":include")
+
+_Source: https://github.com/dolanmiu/docx/blob/master/demo/122-chart-options.ts_
Represents a chart in a WordprocessingML document: a column, bar, line, area, pie, doughnut or scatter chart, drawn -by Word from its data in the document's theme, as a chart made with Word's Insert Chart is.
+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.
The chart is a part of its own (
+table, header, footer or footnote. Without a description in itsword/charts/chart1.xml), with its data in an embedded workbook, so Word's "Edit Data" opens it in Excel. It sits inline with text unlessfloatingis set, and goes in a paragraph, including in a -table, header, footer or footnote.altText, the chart is described for screen readers +from its data.Reference: http://officeopenxml.com/drwOverview.php
- ChartRun
+@@ -70,12 +72,13 @@ table, header, footer or footnote.
Throws
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, a pie chart has more than one series or a pie or doughnut chart a negative value, a -scatter point isn't two finite numbers, or an option is out of its range
+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