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,

     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}

魚の種類

2004

2005

Herring

9,500

8,300

Salmon

2,900

4,200

Tuna

1,500

1,500

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

必要な入力項目

表示結果

{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}

魚の種類

2004

2005

Herring

9,500

8,300

Salmon

2,900

4,200

Tuna

1,500

1,500

パラメーター

Compatibility With Other Macros

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}
表示結果

Month

Revenue

1 時間 365 日

31.8

2 時間 365 日

41.8

3 時間 365 日

51.3

4 時間 365 日

33.8

5 時間 365 日

27.6

6 時間 365 日

49.8

7 時間 365 日

51.8

8 時間 365 日

77.3

9 時間 365 日

73.8

10 時間 365 日

97.6

11 時間 365 日

101.2

12 時間 365 日

113.7

Month

Expenses

1 時間 365 日

41.1

2 時間 365 日

43.8

3 時間 365 日

45.3

4 時間 365 日

45.0

5 時間 365 日

44.6

6 時間 365 日

43.8

7 時間 365 日

51.8

8 時間 365 日

52.3

9 時間 365 日

53.8

10 時間 365 日

55.6

11 時間 365 日

61.2

12 時間 365 日

63.7

XY Line チャート

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

 

12

14

23

Revenue

41.1

31.8

12.4

Expense

31.1

41.8

43.6

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}
表示結果

 

2005

2006

2007

Revenue

41.1

31.8

12.4

Expense

31.1

41.8

43.6

XY Area チャート

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

 

12

14

23

Revenue

41.1

31.8

12.4

Expense

31.1

41.8

43.6

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}
表示結果

Satisfaction

2002

2003

2004

Very satisfied

20

23

34

Satisfied

40

34

23

不満足

25

26

25

非常に不満足

15

17

18

必要な入力項目
{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}
表示結果

Satisfaction

2002

2003

2004

Very satisfied

12

23

31

Satisfied

1

34

36

不満足

4

6

22

非常に不満足

2

7

12

関連トピック

Flowchart Macro
Working with Macros

Take me back to the Confluence User's Guide.