The Chart Macro allows you to display a chart based on tabular data. When entering the macro code, you will supply the data and choose the format of the chart.

The chart macro appears as shown in the following screenshot.

Screenshot: The Chart Macro in Confluence

On this page:

Usage with the Macro Browser

To insert the chart macro into a page using the Macro Browser,

  1. Open your desired Confluence page or blog post, then click the 'Edit' button. The page or blog post opens in edit mode.
  2. Click the Macro Browser icon on the toolbar. The macro browser window opens in the middle of the screen in 'macro selection' mode.
  3. Scroll through the list of macros. Alternatively, start typing part of the name of your desired macro into the search box at the top right of the macro browser window. Macros with a matching name will appear in the main pane.
  4. Click on the desired macro to access its parameters and preview parameter changes ('preview mode').
  5. Set the macro parameters to your requirements. If desired, you can preview these changes by clicking 'Refresh'.
  6. Click 'Insert' to put the macro into the page.

     4. Once you've found the chart macro, select a type of chart from the parameter settings (listed below).
     5. You will also need to manually enter your chart data as a Wiki markup table into the 'body text' field, like so:

|produce|orange|lemon|grape|pear|
|week 1 |10| 20| 30| 40 |50|
|week 2 |100|200|300|300|400|500|

     6. Click 'Preview' to check that your settings and data are correct.
     7. Finally, click 'insert' to add the chart to your page.

Usage with the Wiki Markup Editor.

これは円グラフの簡単な例です。

必要な入力項目

表示結果

{chart:type=pie|title=Fish Sold}
|| Fish Type || 2004 || 2005 ||
|| Herring | 9,500 | 8,300 |
|| Salmon | 2,900 | 4,200 |
|| Tuna | 1,500 | 1,500 |
{chart}

これは棒グラフの簡単な例です。

必要な入力項目

表示結果

{chart:type=bar|title=Fish Sold}
|| Fish Type || 2004 || 2005 ||
|| Herring | 9,500 | 8,300 |
|| Salmon | 2,900 | 4,200 |
|| Tuna | 1,500 | 1,500 |
{chart}

パラメーター

[Unable to render {include} The included page could not be found. ({include} をレンダリングできません。ページが見つかりませんでした)] を選択し、

Compatibility With Other Macros

[Unable to render {include} The included page could not be found. ({include} をレンダリングできません。ページが見つかりませんでした)] を選択し、

Time Series チャート

必要な入力項目
{chart:type=timeSeries|dateFormat=MM/yyyy|timePeriod=Month| dataOrientation=vertical|rangeAxisLowerBound=0|domainaxisrotateticklabel=true}
|| Month || Revenue ||
| 1/2005 | 31.8 |
| 2/2005 | 41.8 |
| 3/2005 | 51.3|
| 4/2005 | 33.8|
| 5/2005 | 27.6|
| 6/2005 | 49.8|
| 7/2005 | 51.8|
| 8/2005 | 77.3|
| 9/2005 | 73.8|
| 10/2005 | 97.6|
| 11/2005 | 101.2|
| 12/2005 | 113.7|

|| Month || Expenses ||
| 1/2005 | 41.1|
| 2/2005 | 43.8|
| 3/2005 | 45.3|
| 4/2005 | 45.0|
| 5/2005 | 44.6|
| 6/2005 | 43.8|
| 7/2005 | 51.8|
| 8/2005 | 52.3|
| 9/2005 | 53.8|
| 10/2005 | 55.6|
| 11/2005 | 61.2|
| 12/2005 | 63.7|
{chart}
表示結果

XY Line チャート

必要な入力項目
{chart:type=xyline}
|| || 12 || 14 || 23 ||
| Revenue | 41.1 | 31.8 | 12.4 |
| Expense | 31.1 | 41.8| 43.6|
{chart}
表示結果

XY Bar Chart

必要な入力項目
{chart:type=xybar|opacity=60}
|| || 2005 || 2006 || 2007 ||
| Revenue | 41.1 | 31.8 | 12.4 |
| Expense | 31.1| 41.8| 43.6|
{chart}
表示結果

XY Area チャート

必要な入力項目
{chart:type=xyarea}
|| || 12 || 14 || 23 ||
| Revenue | 41.1 | 31.8 | 12.4 |
| Expense | 31.1 | 41.8| 43.6|
{chart}
表示結果

Area チャート

必要な入力項目
{chart:type=area|dataDisplay=true|legend=true|width=300|height=300|opacity=50}
|| Satisfaction || 2002 || 2003 || 2004 ||
| Very satisfied | 20 | 23 | 34 |
| Satisfied | 40 | 34 | 23 |
| Disatisfied | 25 | 26 | 25 |
| Very disatisfied | 15 | 17 | 18 |
{chart}
表示結果
必要な入力項目
{chart:type=area|dataDisplay=true|legend=true|width=300|height=300|stacked=true}
|| Satisfaction || 2002 || 2003 || 2004 ||
| Very satisfied | 12 | 23 | 31 |
| Satisfied | 1 | 34 | 36 |
| Disatisfied | 4 | 6 | 22 |
| Very disatisfied | 2 | 7 | 12 |
{chart}
表示結果
関連トピック

Flowchart Macro
Working with Macros

Take me back to the Confluence User's Guide.

  • ラベルなし