| 97 | |
| 98 | === Existing report, different charts per report === |
| 99 | You will likely want to customize the charts in different reports differently. To do that, create a new section for the reports instead of including them in the main {{{[viz]}}} section's {{{reports}}} option: |
| 100 | {{{ |
| 101 | [viz] |
| 102 | options = width:600,height:400 |
| 103 | |
| 104 | [viz.report/21] |
| 105 | type = ColumnChart |
| 106 | options = colors:['green'],title='Whistle while we work' |
| 107 | |
| 108 | [viz.report/23] |
| 109 | type = AreaChart |
| 110 | options = colors:['red'],title='Bugs baby!' |
| 111 | }}} |
| 112 | |
| 113 | The above customizes reports 21 and 23 differently. Report 21 will be a green column chart with the given title, and report 23 will be a red area chart with its given title. Both charts will inherit the {{{[viz]}}} section's width and height, however. |
| 114 | |
| 115 | '''Important''': whereas the {{{options}}} option ''adds'' to the {{{[viz]}}} section's {{{options}}}, all other options ''override'' the {{{[viz]}}} section's options. |