先看一下原来的图表,如果想给X轴和y轴加上单位说明,做法如下:
首先,你的word是什么版的,我的是word2003,我在word2007中没有找到设置图片格式的功能
1、选定图,右键选:设置图片格式
2、看图:
3、在网站这栏里,原文:
chart:
<Graph graphType="LINE_VERT_ABS" stylePath="/oracle/dss/graph/styles/earth.xml"><LegendArea visible="false"/>
<Title text="输出功率走势图" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(.//WD_POWER_ROW)}" rowCount="1">
<ColLabels>
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//WD_POWER_ROW">
<Label Labelname='date'>
<xsl:value-of select="d_time"/>
</Label>
</xsl:for-each>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//WD_POWER_ROW">
<Cell>
<xsl:value-of select="wd_power"/>
</Cell>
</xsl:for-each>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
4、我们加改上面的程序,加上x轴,Y轴说明(单位)
chart:
<Graph graphType="LINE_VERT_ABS" stylePath="/oracle/dss/graph/styles/earth.xml"><LegendArea visible="false"/>
<Title text="输出功率走势图" visible="true" horizontalAlignment="CENTER"/>
/*y轴*/
<Y1Title text="功率单位:瓦" visible="true"/>
/*x轴*/
<O1Title text="日期" visible="true"/>
<LocalGridData colCount="{count(.//WD_POWER_ROW)}" rowCount="1">
<ColLabels>
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//WD_POWER_ROW">
<Label>
<xsl:value-of select="d_time"/>
</Label>
</xsl:for-each>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//WD_POWER_ROW">
<Cell>
<xsl:value-of select="wd_power"/>
</Cell>
</xsl:for-each>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
5、输出结果如图: