Structure
Chart nodes (DonutNode, GaugeNode, PieNode, etc.) are produced by placing the SVG in "resolved" into word.
The style property refers to a table style in the template so the SVG gets placed into a table
...
If a cell contains "{title}" the mainTitle gets placed
...
If a cell contains "{subTitle}" the subTitle gets placed
...
If a cell contains “{footer}” the footer gets placed (otherwise the footer cell is deleted)
...
The chart gets placed into the first empty cell of the table template
...
{mainTitle} |
---|
{subTitle} |
empty or {content} |
{footer} |
Behavior
ChartNodes are produced by copying the chart style and filling out the placeholders.
The actual chart is placed into the cell marked with {content} or, if no such placeholder exists, the first cell where the first paragraph is empty.
If no style is specified in the abstract report the chart is produced by using the default chart style (if available).
Metadata
Chart styles only support defining default styles.
Examples
Example 1: Showing a simple case with a standard chart style
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Example 2: Showing what happens if no style is specified
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
Example 3: Showing how using ‘noStyle’ works to render a chart without a style even if a default style is specified
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|