Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display Labels using chart engine

Former Member
0 Kudos

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>

1 REPLY 1

Former Member
0 Kudos

Hi Sarika Sharma,

Use these XML tags in the header section to make the labels visible.

 

<tt:root name="TITLE"/>

<tt:root name="CATEGORY_AXIS_TITLE"/>

<tt:root name="VALUE_AXIS_TITLE"/>

Please let me know the status of your problem.

Thanks & regards,

Arun Prasath Kumar.