Hello,
Is it possible to create a chart with more than 2-3 items? I see multiple bar and grapg examples that chart 2-3 items such as XYZ but i need to add more items. Is this possible with this macro?
Hi. Did you try?
That’s usually the best way to test something!
For example if you check https://extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro you’ll find example such as:
(%id="table1"%)
|=|=X|=Y|=Z
|Q1|1.2|3.4|1.3
|Q2|4.5|3.4|2.3
|Q3|1.2|4.5|9.0
|Q4|3.4|1.2|1.2
{{chart type="bar" params="document:<document_source_name>;table:table1;range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"/}}
This example has 3 items. Did you try with, say, 4?
FWIW I just tested with
{{chart type="bar" source="inline" params="range:B2-E5;series:columns;" title="Chart Test" width="320" height="240"}}
|=|=X|=Y|=Z|=A
|Q1|1.2|3.4|1.3|2.0
|Q2|4.5|3.4|2.3|2.4
|Q3|1.2|4.5|9.0|2.5
|Q4|3.4|1.2|1.2|2.6
{{/chart}}
And it works fine…