cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynnpro Pie Chart Help. How to add category.

Former Member
0 Kudos

Hi,

i am using the business graphics element to create the pie chart in web dynn pro. In the web dynn pro, it only allow me to add one category. So that, i cannot add more category in order to insert my value in the pie. Any one got solution about this? thank you.

regards,

Jack.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingchartsinSimpleABAP+Programs


<?xml version="1.0" encoding="utf-8"?>
<SAPChartCustomizing version="2.0">
</SAPChartCustomizing>
<Values>
<Point id="Category1">
   <ShowLabel>false</ShowLabel>
   <Format>$Label</Format>
   <LineColor>Automatic</LineColor>
   <LineStyle>Solid</LineStyle>
   <LineWidth>2</LineWidth>
   <Color>Automatic</Color>
   <SecondaryColor>RGB(0,0,0)</SecondaryColor>
   <Pattern>None</Pattern>
   <Gradient>None</Gradient>
   <Texture>None</Texture>
   <TextureMode>Tile</TextureMode>
   <Transparency>0</Transparency>
   <MarkerShape>Rectangle</MarkerShape>
   <MarkerSize>5</MarkerSize>
   <BorderColor>Automatic</BorderColor>
   <BorderStyle>Solid</BorderStyle>
   <BorderWidth>1</BorderWidth>
   <Text>
    <FontFamily>Automatic</FontFamily>
    <Color>@16</Color>
    <Size>8</Size>
    <Style>Normal</Style>
    <HorizontalPosition>Default</HorizontalPosition>
    <VerticalPosition>Default</VerticalPosition>
    <Direction>Default</Direction>
   </Text>
   <Caption/>
  </Point>

<!--ADD AS MANY CATEGORIES AS YOU NEED defined as  <point> tag -->
 </Values>

Former Member
0 Kudos

Hi expert,

When i add the category in this XML file, there is some problem when i am going to insert the value in the category. This is because in the wed dynn pro there, it only allow me to insert one category. SO that, i only can blind one data to category. Any method to let me blind more than one data to the category? Thank you.

regards,

Jack.

Former Member
Former Member
0 Kudos

Hi,

For this case, it just hard code the category type. My problem is when i developing pie chart,. i need to blind the category value. But in the system there, it only allow me to add one category. Is that any example for me to refer in order to crate a pie chart?

regards,

Jack.

Former Member
0 Kudos

Hi,

My question had been solved. Any how, anyone know how to add in tool tip in the pie chart ? Currently i am manually code the category for the pie chart. Who had idea how to add in the tooltip by using code? Below is the code that i did for the pie chart.

CHECK wa_graph1-pending_user_action IS NOT INITIAL.

stru_node_pie-description = 'PENDING USER ACTION'.

stru_node_pie-series = wa_graph1-pending_user_action.

APPEND stru_node_pie TO itab_node_pie .

CHECK wa_graph1-pending_approval IS NOT INITIAL.

stru_node_pie-description = 'PENDING APPROVAL'.

stru_node_pie-series = wa_graph1-pending_approval.

APPEND stru_node_pie TO itab_node_pie .

CHECK wa_graph1-approved IS NOT INITIAL.

stru_node_pie-description = 'APPROVED'.

stru_node_pie-series = wa_graph1-approved.

APPEND stru_node_pie TO itab_node_pie .

Thank.

Regards,

Jack

Answers (0)