具有动态内容的用户宏中的图表宏

Chart Macro In User Macro With Dynamic Content

我试图通过以下代码在用户宏中使用图表宏,

## @noparams
<ac:structured-macro ac:name="chart">
              <ac:parameter ac:name="type">line</ac:parameter>
              <ac:parameter ac:name="Tables">Sample</ac:parameter>
</ac:structured-macro>

<table id="sample">

                 ... body goes here...

</table>

我的 confluence 页面中出现了 No Data Available。如何动态地向图表宏提供数据?

来自 atlassian 社区的 Andre 回答了我的问题。我们可以利用 <ac:rich-text-body> 标签来提供 table。语法如下,

<ac:structured-macro ac:name="chart">
     <ac:parameter ac:name="type">line</ac:parameter> 
     <ac:rich-text-body>
         here goes the table
     </ac:rich-text-body>
</ac:structured-macro>

this url 中提供了完整的讨论。