BIP_开发案例08_BI Publisher图表示例 饼状图/直方图/折线图(案例)

 2014-12-25 Created By BaoXinjian

一、摘要


BI Publisher类型有:条形图-垂直、条形图-水平、饼图、线形图。

向导生成的代码,可在图片的“设置图片格式”网站标签页内的“可选文字”里看到,我们可以做进一步修改

1. 数据

2. 插入

3. 预览

4. 工具

 

二、测试数据


准备测试数据,开立三张invoice,并导出为xml数据源模式

1. PDF输出测试数据

2.  测试数据XML

XML 测试数据 - Invoice Data

 

二、饼状图


测试BI Publisher饼状图

1. 通过向导设定数据来源

2. 数据PDF,显示饼状图

 3. 查看自动产生的XML 数据定义方式

复制代码
chart:
<Graph stylePath="/oracle/dss/graph/styles/nautical.xml" depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20" seriesEffect="SE_AUTO_GRADIENT" graphType="PIE">
<LegendArea visible="true" />
<LocalGridData colCount="1" rowCount="{count(xdoxslt:group(.//G_INVOICE,  'INVOICE_NUM'))}">
  <RowLabels>
    <xsl:for-each-group select=".//G_INVOICE" group-by="INVOICE_NUM" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:sort select="current-group()/INVOICE_NUM" />
      <Label><xsl:value-of select="current-group()/INVOICE_NUM" /></Label>
    </xsl:for-each-group>
  </RowLabels>
  <DataValues>
    <xsl:for-each-group select=".//G_INVOICE" group-by="INVOICE_NUM" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:sort select="current-group()/INVOICE_NUM" />
    <RowData>
      <Cell><xsl:value-of select="sum(current-group()/INVOICE_TOTAL)" /></Cell>
    </RowData></xsl:for-each-group>
  </DataValues>
</LocalGridData>
</Graph>
复制代码

 

三、直方图


测试BI Publisher直方图

1. 通过向导设定数据来源 

2. 数据PDF,显示直方图

 

四、折线图


测试BI Publisher折现

1. 通过向导设定数据来源

2. 数据PDF,显示折线图

 

Thanks and Regards

posted on 2014-11-14 09:40  东方瀚海  阅读(612)  评论(0编辑  收藏  举报