-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsample-confluence-page-code.html
556 lines (556 loc) · 32.4 KB
/
sample-confluence-page-code.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<ac:layout>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h1>You need at least two of the Macros!</h1>
<p>At least two macros are needed on each page you want to show Chart.js charts.</p>
<ol>
<li>
<p>The macro "ChartJS v2: Script". This macro includes the Chart.js v2 script and draws all your charts. You need to include it once on your page.</p>
</li>
<li>
<p>At least one chart macro, e.g. "ChartJS v2: Bar Chart". This is your chart macro in which you specify your chart values. Of course you can instert as many chart macros as you want.</p>
</li>
</ol>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="two_right_sidebar">
<ac:layout-cell>
<h1>Chart Types</h1>
</ac:layout-cell>
<ac:layout-cell>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Bar Chart (Single Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="163a71ef-bb48-4ee4-a496-042647b3843d" ac:name="chartjsv2-bar" ac:schema-version="1">
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="Bar2Color">179,179,0</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="BorderWidth">2px</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearBarChartSingle</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Bar Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearBarChartSingle".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Bar Chart (Two Datasets)</h2>
<p>
<ac:structured-macro ac:macro-id="138b869f-e612-44d2-bb0d-b9cf0d901f46" ac:name="chartjsv2-bar" ac:schema-version="1">
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="Bar2Color">179,179,0</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="BorderWidth">2px</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearBarChartDouble</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Bar Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearBarChartDouble".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Check the "Show Second Dataset" box</li>
<li>Below that you will find the field "Dataset 2 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Bar Chart (Mixed)</h2>
<p>
<ac:structured-macro ac:macro-id="ca2dfc78-ac38-494d-90cf-fa2a725b983a" ac:name="chartjsv2-bar" ac:schema-version="1">
<ac:parameter ac:name="Data2Color">179,0,0</ac:parameter>
<ac:parameter ac:name="Data2Line">true</ac:parameter>
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="Bar2Color">179,179,0</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="BorderWidth">2px</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearBarChartDoubleLine</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Bar Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearBarChartMixed".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Check the "Show Second Dataset" box</li>
<li>Below that you will find the field "Dataset 2 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Check the "Show Dataset 2 as a line"</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Bubble Chart (from Table)</h2>
<ac:structured-macro ac:macro-id="49da98d9-2fc3-487f-a89c-95e7faaac06d" ac:name="chartjsv2-bubble" ac:schema-version="1">
<ac:parameter ac:name="AspectRatio">false</ac:parameter>
<ac:parameter ac:name="ChartTitle">The last 3 Years</ac:parameter>
<ac:parameter ac:name="ChartID">TheLastThreeYearsBubble</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
</ac:structured-macro>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Bubble Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearBoubleChart".</li>
<li>Enter a title in the field "Chart Title". For example "The last 3x Years".</li>
<li>Save the Macro dialog.</li>
<li>In the macro body, create a table with 4 columns and a header row. The columns are read as:<br/>
<ul>
<li>Column 1: Dataset Name</li>
<li>Column 2: X-coordinate</li>
<li>Column 3: Y-coordinate</li>
<li>Column 4: Radius (how big the radius of the bubble is)</li>
</ul>
</li>
<li>For each bubble enter one row with the dataset name it belongs to plus the x, y and r value</li>
<li>All rows for one dataset must be together (underneath each other). The dataset name must be repeated in each of its rows.</li>
</ul>
<p>
<strong>Example of above chart:</strong>
</p>
<table class="wrapped">
<colgroup> <col/> <col/> <col/> <col/> </colgroup>
<tbody>
<tr>
<th>Label</th>
<th>x</th>
<th>y</th>
<th>r</th>
</tr>
<tr>
<td>2016</td>
<td>12</td>
<td>-4</td>
<td>11</td>
</tr>
<tr>
<td>2016</td>
<td>-6</td>
<td>19</td>
<td>13</td>
</tr>
<tr>
<td>2016</td>
<td>23</td>
<td>12</td>
<td>16</td>
</tr>
<tr>
<td>2016</td>
<td>34</td>
<td>14</td>
<td>22</td>
</tr>
<tr>
<td>2017</td>
<td>-11</td>
<td>7</td>
<td>9</td>
</tr>
<tr>
<td>2017</td>
<td>9</td>
<td>8</td>
<td>10</td>
</tr>
<tr>
<td>2017</td>
<td>11</td>
<td>-11</td>
<td>11</td>
</tr>
<tr>
<td>2017</td>
<td>16</td>
<td>12</td>
<td>13</td>
</tr>
<tr>
<td>2018</td>
<td>6</td>
<td>23</td>
<td>17</td>
</tr>
<tr>
<td>2018</td>
<td>-12</td>
<td>-23</td>
<td>6</td>
</tr>
<tr>
<td>2018</td>
<td>-4</td>
<td>-21</td>
<td>12</td>
</tr>
<tr>
<td>2018</td>
<td>-22</td>
<td>17</td>
<td>14</td>
</tr>
</tbody>
</table>
<p>
<strong> <br/>
</strong>
</p>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Line Chart (Single Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="015babcd-6ff8-4b7a-bb10-aae1ae0f48f1" ac:name="chartjsv2-line" ac:schema-version="1">
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearLineChartSingle</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Line Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearLineChartSingle".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Line Chart (Double Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="f297b40b-d886-4183-b9a7-4d86632297c8" ac:name="chartjsv2-line" ac:schema-version="1">
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearLineChartDouble</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Line Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearLineChartDouble".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Check the "Show Second Dataset" box</li>
<li>Below that you will find the field "Dataset 2 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Radar Chart (Single Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="50b60317-cee8-44bc-a6b9-9eafbe6c712d" ac:name="chartjsv2-radar" ac:schema-version="1">
<ac:parameter ac:name="Data1Title">Maximum</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="Data2Title">Minimum</ac:parameter>
<ac:parameter ac:name="Data1Values">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearRadarChartSingle</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Radar Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearRadarChartSingle".</li>
<li>Enter a title in the field "Chart Titles". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Radar Chart (Double Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="92a836ab-5f16-4e1b-9c31-d18e65b35a5a" ac:name="chartjsv2-radar" ac:schema-version="1">
<ac:parameter ac:name="Data1Title">Maximum</ac:parameter>
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="Data2Title">Minimum</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="Data1Values">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearRadarChartDouble</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS v2: Radar Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearRadarChartSingle".</li>
<li>Enter a title in the field "Chart Title". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "123,245,99,105,186,123".</li>
<li>Check the "Show Second Dataset" box</li>
<li>Below that you will find the field "Dataset 2 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Pie Chart (Single Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="ad00142a-af33-4096-8222-03c67b83b1d1" ac:name="chartjsv2-pie" ac:schema-version="1">
<ac:parameter ac:name="DataColors">#F7464A,#46BFBD,#FDB45C,#9E023D,#A1B334,#3456E5</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearPieChartSingle</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS: Pie Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearPieChartSingle".</li>
<li>Enter a title in the field "Chart Title". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017"</li>
<li>Enter the "Dataset 1 Legend".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Enter the "Dataset 1 Colors" in hexadecimal format (see bottom of this page to find the right color values).</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Pie Chart (Double Dataset)</h2>
<p>
<ac:structured-macro ac:macro-id="0f967f19-f23c-4a81-a25b-847f8073a259" ac:name="chartjsv2-pie" ac:schema-version="1">
<ac:parameter ac:name="DataColors">#F7464A,#46BFBD,#FDB45C,#9E023D,#A1B334,#3456E5</ac:parameter>
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="Data2Colors">#F7464A,#46BFBD,#FDB45C,#9E023D,#A1B334,#3456E5</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearPieChartDouble</ac:parameter>
</ac:structured-macro>
</p>
<ul>
<li>Edit your page. Insert the macro "ChartJS v2: Script" at the bottom of your page if not already done. You need the script macro only once on your page no matter how much other charts you include.</li>
<li>Insert a "ChartJS: Pie Chart" macro at the position of your liking.</li>
<li>In the macro dialog, enter a identifier for this chart. The identifier must be unique on your page. Don't use any blanks. For example "MySixYearPieChartSingle".</li>
<li>Enter a title in the field "Chart Title". For example "The Last Six Years".</li>
<li>Scroll down until you see the field "Dataset Labels". Let's say you want to show values of the last six years. Enter "2012,2013,2014,2015,2016,2017"</li>
<li>Enter the "Dataset 1 Legend".</li>
<li>Below that you will find the field "Dataset 1 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Enter the "Dataset 1 Colors" in hexadecimal format (see bottom of this page to find the right color values).</li>
<li>Check the "Show Second Dataset" box</li>
<li>Enter the "Dataset 2 Legend".</li>
<li>Below that you will find the field "Dataset 2 values". Enter the values for those years, separated by a comma. Enter as much values as you have labels. Example: "97,111,54,45,99,77".</li>
<li>Enter the "Dataset 2 Colors" in hexadecimal format (see bottom of this page to find the right color values).</li>
<li>Save the macro and save the page.</li>
</ul>
<p>
<strong>Note:</strong> There are several more parameters you can adjust in this macro. Try them out until you reach the result you want.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h2>Doughnut Chart</h2>
<p>
<ac:structured-macro ac:macro-id="091bffb9-82a0-4d23-a58c-6c4d3aa06d8f" ac:name="chartjsv2-pie" ac:schema-version="1">
<ac:parameter ac:name="DataColors">#F7464A,#46BFBD,#FDB45C,#9E023D,#A1B334,#3456E5</ac:parameter>
<ac:parameter ac:name="Data2Values">97,111,54,45,99,77</ac:parameter>
<ac:parameter ac:name="DataLabels">2012,2013,2014,2015,2016,2017</ac:parameter>
<ac:parameter ac:name="DataValues">123,245,99,105,186,123</ac:parameter>
<ac:parameter ac:name="Doughnut">true</ac:parameter>
<ac:parameter ac:name="ShowSecondSet">true</ac:parameter>
<ac:parameter ac:name="Data2Colors">#F7464A,#46BFBD,#FDB45C,#9E023D,#A1B334,#3456E5</ac:parameter>
<ac:parameter ac:name="ChartTitle">The Last Six Years</ac:parameter>
<ac:parameter ac:name="ChartID">MySixYearDoughnutChartDouble</ac:parameter>
</ac:structured-macro>
</p>
<p>A Doughnut Chart is a deviation of the Pie Chart. It shows an opening in the middle of the pie, just like the shape of a doughnut. You have to use the same macro "ChartJS: Pie Chart" and enter the values just the same way. The only parameter you have to change in the macro is, tick the option "Show as Doughnut".</p>
<p>The above macro will look like this as a Doughnut Chart.</p>
<p>
<br/>
</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<hr/>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<h1>Troubleshooting</h1>
<h2>I don't know the color values</h2>
<p>All of the above macros offer the option to change colors. Most fields require the hex value of a color, some require the decimal values. Hex or decimal, both input formats define the vlaue for Red, Green and Blue (RGB). The lowest value for each color is decimal 0 (hex 0), the highest is decimal 255 (hex F). Any combination of those three create a specific color. If all three are 0, the color is black. If all three are 255, the color is white.</p>
<p>Other examples are (R,G,B):</p>
<ul>
<li>0,0,0 => Black</li>
<li>255,0,0 => Bright Red</li>
<li>0,255,0 => Bright Green</li>
<li>0,0,255 => Bright Blue</li>
<li>255,255,255 => White</li>
</ul>
<p>Every other combination is one of 16.5 million color shades in between.</p>
<p>There is a free online service that makes it very easy for you to select a color and know the corresponding decimal or hex value of it.</p>
<p>
<a href="http://hslpicker.com/">http://hslpicker.com/</a>
</p>
<h2>My chart does not show</h2>
<p>In most of the cases when the chart does not show, it is because you have included several chart macros but you did not give each one a unique identifier on your page. Remember, each ChartJS v2 macro, no matter what type, needs to have a unique identifier on your page. Do not just use the default value.</p>
<p>Another reason could be that the amount of labels and values differ in the macro that is not displayed. Also, make sure that all commas and semicolons - the separators - are set right.</p>
<h2>My chart does not show in the macro preview</h2>
<p>Unfortuantely that is just so. The reason is that not all necessary code is available to the macro dialog because the ChartJS v2: Script macro is separate.</p>
<h2>My chart does not show inside another macro</h2>
<p>Unfortuantely that is just so. In some cases, the ChartJS v2 macros do not work embedded in other Confluence macros. The Expand macro is one of them.</p>My charts do not show in PDF Exporter<p>Unfortunately that cannot be changed. The ChartJS v2 charts are meant for online presentation. The PDF Exporter plugin can only render standard Confluence content. Most of our user macros will not show in the output. In order to print your ChartJS v2 charts you need to take screenshots or use the browser print function and direct it to a PDF printer, e.g. to "Adobe PDF" printer in case you have the full Acrobat product installed.</p>
</ac:layout-cell>
</ac:layout-section>
<ac:layout-section ac:type="single">
<ac:layout-cell>
<p>
<ac:structured-macro ac:macro-id="818e9715-f72a-453a-ad78-440411beee61" ac:name="chartjsv2-script" ac:schema-version="1"/>
</p>
</ac:layout-cell>
</ac:layout-section>
</ac:layout>