‎2012 May 01 9:02 PM
Hi,
i am generating charts using chart engine and want to show labels. I tried this code with out XML classes. I am using this in call transformation. This draws the chart but doesnot show label. I am using showlabel and format elements to display label, but no luck. can somebody help?
Thanks,
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="CHART_TYPE"/>
<tt:root name="CAPTION"/>
<tt:root name="CATEGORIES"/>
<tt:root name="SERIES"/>
<tt:template>
<SAPChartCustomizing version="2.1">
<GlobalSettings>
<Dimension>Two</Dimension>
<TransparentColor>RGB(255,0,255)</TransparentColor>
<CanvasColor>RGB(255,255,0)</CanvasColor>
<ColorPalette>Streamline</ColorPalette>
<ColorOrder>Default</ColorOrder>
<Gaps>Void</Gaps>
<EqualizeValueAxes>false</EqualizeValueAxes>
<Mirrored>Automatic</Mirrored>
<Defaults>
<ChartType>
<tt:value ref="CHART_TYPE"/>
</ChartType>
</Defaults>
</GlobalSettings>
<Categories>
<tt:loop ref="CATEGORIES">
<Category>
<tt:value/>
</Category>
</tt:loop>
</Categories>
<tt:loop ref="SERIES">
<Series>
<tt:attribute name="label"> <tt:value ref="LABEL"/> </tt:attribute>
<tt:attribute name="customizing"> <tt:value ref="ID"/> </tt:attribute>
<tt:loop ref="VALUES">
<Point>
<Value type="y"> <tt:value/> </Value>
</Point>
</tt:loop>
<ShowLabel>true</ShowLabel>
<Format>0</Format>
</Series>
</tt:loop>
</SAPChartCustomizing>
</tt:template>
</tt:transform>
‎2012 May 30 10:41 AM