Chart type parametersThese parameters determine the type of chart to display and how the chart looks. | Parameter | Required | Default | Description |
|---|
type | No | pie | The type of chart to display. XY charts have numerical x- and y-axes. The x values may optionally be time-based. See the timeSeries parameter. Available values: - Standard charts
- pie, bar, line, area - XY plots –
xyArea, xyBar, xyLine, xyStep, xyStepArea, scatter, timeSeries - Other charts –
gantt
| orientation | No | vertical | The display orientation. Applies to area, bar and line charts. Available values: vertical – y-axis is verticalhorizontal – x-axis is vertical
| 3D | No | false | Show in three dimensions. Applies to area, bar and line charts. | stacked | No | false | Stacked values. Applies to area and bar charts. | showShapes | No | true | Applies to line charts. Shapes are shown at each data point. | opacity | No | - 75 percent for 3D charts
- 50 percent for non-stacked area charts
- 100 percent for all other charts
| A percentage value between 0 (transparent) and 100 (opaque) that determines how opaque the foreground areas and bars are. |
Chart display parameters| Parameter | Required | Default | Description |
|---|
width | No | 300 | The width of the chart in pixels. | height | No | 300 | The height of the chart in pixels. | dataDisplay | No | false | Determines whether to display the body of the macro, consisting of the data table. By default, the chart data table is not displayed. Available values: - false – the data is not displayed.
true or after – the data is displayed after the chart.before – the data is displayed before the chart.
| imageFormat | No | png | The image format to be used for the chart. Available values: |
Chart title and label parameters| Parameter | Required | Default | Description |
|---|
title | No | (None) | The title of the chart. | subTitle | No | (None) | A subtitle for the chart. | xLabel | No | (None) | The label for the x-axis (domain). | yLabel | No | (None) | The label for the y-axis (range). | legend | No | false | Determines whether to show a legend (key) for the chart. |
Chart data parametersThe data for the chart is taken from tables found in the macro body. The parameters below control how this data is interpreted. By default, numeric and date values are interpreted according to the Confluence global default language (locale) formats. If conversion fails, other languages defined in Confluence will be tried. You can specify additional conversion options using the parameters below. | Parameter | Required | Default | Description |
|---|
tables | No | All first level tables | You can supply a comma-separated list of table IDs and/or table numbers (starting at 1) contained within the body of the macro that will be used as the data for the chart. If data tables are embedded in other tables, then table selection will be required. This occurs when more complex formatting is done (for example using section and column macros). | columns | No | All columns | You can supply a comma-separated list of column labels and/or column titles and/or column numbers for tables used for chart data. This applies to all tables processed. Columns are enumerated starting at 1. Column label is the text for the column in the header row. Column title is the HTML title attribute for the column in the header row. | dataOrientation | No | horizontal | The content orientation. By default, the data tables will be interpreted as columns (horizontally) representing domain and x values. Available values: vertical – data table columns will be interpreted as series.horizontal – data tables rows will be interpreted as series.
| timeSeries | No | false | If 'true', the x values in an XY plot will be treated as time series data and so will be converted according date formats. | dateFormat | No | Confluence language defined date formats | For time series data, the date format allows for additional customisation of the conversion of data to date values. If a dateFormat is specified, it will be the first format used to interpret date values. Specify a format that matches the time series data. See simple date format. | timePeriod | No | day | The time period for time series data. Defines the granularity of how the data is interpreted. Available values: millisecond, second, minute, hour, day, week, month, quarter, year | language | No | (None) | Use in combination with the country parameter to form a locale. These additional number and date formats will be used for data conversion before the default languages. Available values are the two-character ISO 639-1 alpha-2 codes. | country | No | (None) | Use in combination with the language parameter to form a locale. Valid values are the two-character ISO 3166 codes. | forgive | No | true | Determines whether the macro will forgive (allow) some data formatting errors. Available values: true — the macro tries to convert numeric and date values that do not totally match any of the default or user-specified formats.false — the macro enforces strict data formatting. If there are data format errors, the chart will not be produced.
|
Chart colour parametersColours are specified using hexadecimal notation or HTML colour names. | Parameter | Required | Default | Description |
|---|
bgColor | No | White | Background colour of the chart. | borderColor | No | No border | Colour of the border around the chart. | colors | No | | A comma-separated list of colours used to customise the colours of categories, sections, and series. |
Chart axis parametersDepending on the chart type, the range and domain axis may be customised. These values are automatically generated based on the data but can be overridden by specifying one or more more of these parameters. | Parameter | Required | Default | Description |
|---|
rangeAxisLowerBound | No | (None) | Minimum value for the range axis. | rangeAxisUpperBound | No | (None) | Maximum value for the range axis. | rangeAxisTickUnit | No | (None) | Range axis units between axis tick marks. | rangeAxisLabelAngle | No | (None) | Angle for the range axis label in degrees. | domainAxisLowerBound | No | (None) | Only applies to XY plots. Domain axis lower bound. For a date axis, this value must be expressed in the date format specified by the dateFormat parameter. | domainAxisUpperBound | No | (None) | Only applies to XY plots. Domain axis upper bound. For a date axis, this value must be expressed in the date format specified by the dateFormat parameter. | domainAxisTickUnit | No | (None) | Only applies to XY plots. Domain axis units between axis tick marks. For a date axis, this value represents a count of the units specified in the timePeriod parameter. The timePeriod unit can be overridden by specifying a trailing character: y (years), M (months), d (days), h (hours), m (minutes), s (seconds), u (milliseconds). | domainAxisLabelAngle | No | (None) | Only applies to XY plots. The angle for the domain axis label, in degrees. | categoryLabelPosition | No | (None) | Placement of the axis label text for categories. Available values: up45 — 45 degrees going upwardup90 — 90 degrees going upwarddown45 — 45 degrees going downwarddown90 — 90 degrees going downward
| dateTickMarkPosition | No | start | Placement of the date tick mark. Available values: start — tick mark is at the start of the date period.middle — tick mark is in the middle of the date period.end — tick mark is at the end of the date period.
|
Pie chart Parameters| Parameter | Required | Default | Description |
|---|
pieSectionLabel | No | Show only the pie section key value | Formatof pie section labels. The format uses a string with special replacement variables:%0% is replaced by the pie section key.%1% is replaced by the pie section numeric value.%2% is replaced by the pie section percent value.
Example 1: To display something like 'Independent = 20': Example 2: To display something like 'Independent (20%)':
| pieSectionExplode | No | No exploded sections | A comma-separated list of pie keys that are to be shown exploded. Note: requires jFreeChart version 1.0.3 or higher. |
Chart attachment parametersThese are advanced options that can be used for chart versioning, to enable automation and to improve performance. Use these options carefully! Normally, the chart image is regenerated each time the page is displayed. These options allow for the generated image to be saved as an attachment and have subsequent access to re-use the attachment. This can be useful especially when combined with the Cache plugin to improve performance. Depending on the options chosen, chart images can be versioned for historical purposes. | Parameter | Required | Default | Description |
|---|
attachment | No | (None) | The name and location where the chart image will be saved as an attachment. The user must be authorised to add attachments to the page specified. Available syntax for this parameter: ^attachmentName.png — the chart is saved as an attachment to the current page.page name^attachmentName.png — the chart is saved as an attachment to the page name provided.spacekey:page name^attachmentName.png — the chart is saved as an attachment to the page name provided in the space indicated.
| attachmentVersion | No | new | Defines the the versioning mechanism for saved charts. Available values: new — creates new version of the attachment.replace — replaces all previous versions of the chart. To replace an existing attachment, the user must be authorised to remove attachments for the page specified.keep — only saves a new attachment if an existing export of the same name does not exist. An existing attachment will not be changed or updated.
| attachmentComment | No | (None) | Comment used for a saved chart attachment. | thumbnail | No | false | If true, the chart image attachment will be shown as a thumbnail (small, expandable) image. |
|