We have a simple CSv CSV file attached to this page, the structure and the contents is as follows:
Product A | 35000 |
Product B | 12000 |
Product C | 2000 |
...
And we would like to show it as a table and show the contents as a pie chart
as Table (using ConfiDoc TableView)
ConfiDoc TableView Macro |
---|
values | 7602256:7602257 |
---|
serviceId | 3ef0b857-984b-4180-82ce-55a15265a88c |
---|
|
column0Product name column1Sales total |
Expand |
---|
title | Show configuration in storage format... |
---|
|
Code Block |
---|
<ac:structured-macro ac:macro-id="b3660f1b-ecf5-4640-8708-12882d75318b" ac:name="confidoc-table" ac:schema-version="1">
<ac:parameter ac:name="values">7602256:7602257</ac:parameter>
<ac:parameter ac:name="serviceId">3ef0b857-984b-4180-82ce-55a15265a88c</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="f381bd74-0346-4efe-9d8a-e173186763e6" ac:name="confidoc-field" ac:schema-version="1">
<ac:parameter ac:name="name">column0</ac:parameter>
<ac:parameter ac:name="label">Product name</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="48addada-86eb-456c-b33b-dd5636570c7e" ac:name="confidoc-field" ac:schema-version="1">
<ac:parameter ac:name="name">column1</ac:parameter>
<ac:parameter ac:name="label">Sales total</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro> |
|
...
Show the same table as a pie chart using Confluence standard Chart macro (ConfiDoc generates a compatible table to be used within this macro)
Chart |
---|
orientation | vertical |
---|
dataOrientation | vertical |
---|
|
ConfiDoc TableView Macro |
---|
values | 7602256:7602257 |
---|
serviceId | 3ef0b857-984b-4180-82ce-55a15265a88c |
---|
| column0Product name column1Sales total |
|
Expand |
---|
title | Show configuration in storage format... |
---|
|
Code Block |
---|
<ac:structured-macro ac:macro-id="8cd8c535-dee7-45be-887f-42bb4dcabedf" ac:name="chart" ac:schema-version="1">
<ac:parameter ac:name="orientation">vertical</ac:parameter>
<ac:parameter ac:name="dataOrientation">vertical</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="7409a175-e5b6-4d23-b624-b0d976ac71ab" ac:name="confidoc-table" ac:schema-version="1">
<ac:parameter ac:name="values">7602256:7602257</ac:parameter>
<ac:parameter ac:name="serviceId">3ef0b857-984b-4180-82ce-55a15265a88c</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="8debf19b-d9c1-49dd-af06-364bdd6eead7" ac:name="confidoc-field" ac:schema-version="1">
<ac:parameter ac:name="name">column0</ac:parameter>
<ac:parameter ac:name="label">Product name</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="f6b47f08-b40d-427a-bbe1-03029c524717" ac:name="confidoc-field" ac:schema-version="1">
<ac:parameter ac:name="name">column1</ac:parameter>
<ac:parameter ac:name="label">Sales total</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro> |
|