Application Development and Automation 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: 
Read only

Problem with Pie Chart Size

Former Member
0 Likes
510

I am using the CL_GUI_CHART_ENGINE to show pie charts in a dashboard format. One of my charts has just started to randomly decide to display the pie slices incorrectly.

this is the XML for the data


<Chartdata>
  <Categories>
    <Category>Fax</Category>
    <Category>Phone call</Category>
    <Category>Phone Support</Category>
    <Category>Emergency service</Category>
    <Category>Web</Category>
    <Category>Email</Category>
    <Category>EDI</Category>
  </Categories>
  <Series label="Series" customizing="Series">
    <Point label="$26,815.03">
      <Value type="y">26,815.03</Value>
    </Point>
    <Point label="$17,045.12">
      <Value type="y">17,045.12</Value>
    </Point>
    <Point>
      <Value type="y">0.00</Value>
    </Point>
    <Point>
      <Value type="y">0.00</Value>
    </Point>
    <Point label="$33,914.70">
      <Value type="y">33,914.70</Value>
    </Point>
    <Point label="$23,731.63">
      <Value type="y">23,731.63</Value>
    </Point>
    <Point label="$973.08">
      <Value type="y">973.08</Value>
    </Point>
  </Series>
</Chartdata>

The problem is, the last point on the pie chart is showing like it is about 85% of the pie. I admit, this is my first attempt at this, but why would it be OK, then suddenly NOT OK. Any ideas on what i may have coded incorrectly? what does the type indicator in the Value tag represent? i have looked at the documentation available for the chart engine, and it is pretty weak on specifics.

by the way, the label on the very large part of the pie is $973.08, which is considerably less than the values in the other "slices". The data is correct, as far as having the correct values. it is just suddenly displaying it incorrectly, putting the wrong size slice with the categories.

Edited by: David Knittle on Nov 22, 2010 1:32 PM

2 REPLIES 2
Read only

Former Member
0 Likes
413

HI David Knittle

HOW TO FILL DATA TO POINT ELEMENT ? I SEE SAP DEMO ON CL_GUI_CHART_ENGINE ,just fill data on Categories and Series.

Read only

Former Member
0 Likes
413

could it be because the chart is interpreting the values as text values instead of numbers? and 9 would then be much larger than ther other values? I'd try values without comma....tell it it's a numeric value like 12345.67.