cancel
Showing results for 
Search instead for 
Did you mean: 

Color Of series in Pie chart

Former Member
0 Kudos

Dear Experts ,

I used Business graphics to create the Pie chart I have only one series and pass the set of values to the Series

ls_series-description = 'Profit.

ls_series-value1 = '75'.

APPEND ls_series TO lt_series.

ls_series-description = 'Loss'.

ls_series-value1 = 25 .

. APPEND ls_series TO lt_series.

I get the Graph Plotted correctly but i want to get the different color for the Profit and loss how to achieve this ,

Please suggest

Badari patil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have a similar problem with setting the color in the pie chart.

In my scenario I have 3 values for the pie chart - Completed, In Progress and Failed.

I want these values to be displayed with the colors red, yellow and green.

Is it possible to set individual colors for each value in the pie chart ?

Former Member
0 Kudos

Hi Badri ,

For changing the chart type, size, layout, color, shading and also creating the title for you Bussiness graphics you have to go for Customizing . Right Click the Bussiness Graphi UI and Choose Edit chstomizing .

and bind your customising id in the context .

For detail developement procedure you can reffer the Article below

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81?quicklink=index&overridelayout=true]

Regards

chinnaiya P

Former Member
0 Kudos

Hi chinnaiya,

I have already tried edit customizing , Could be more specific how do i set the color for the 2 values , where the series in just one ?

Regards

Badari

ChrisPaine
Active Contributor
0 Kudos

To get different colours you should choose a colour scheme for your graph. I like the frog one, lots of green - but strangely it's never been popular with my users...

You don't as far as I have found have much control about which colours get used. To get around this in the past I have created dummy series which I pass to the graphic.

you may find for example (and not a real example - just try to understand the idea)

series 1 is red

series 2 is blue

series 3 is yellow

series 4 is green

series 5 is orange, etc.

if you want two series, one red and one green then create 2 dummy series with no data, insert these inbetween your other series so you get ;

series 1 is red - data set 1

series 2 is blue - dummy

series 3 is yellow -dummy

series 4 is green - data set 2

Hope this helps,

Cheers,

Chris

Former Member
0 Kudos

Hi Badri ,

i tried your senario in my system . initial i got the same colour for both profit and loss in the pie chart .

then i change some properties in the Edit customising option iand i get the desier result you want .

let me share that steps with you . wit screen shot

creating the Bussiness graphics with one series .

[http://i49.tinypic.com/wgpa8h.jpg |http://i49.tinypic.com/wgpa8h.jpg ]

Editing the properties by choosing Edit Customizing , choose pie chart -> click on plot area & choose AREA Properties -> - change the colour & secondary colour .see the below screen shot

[http://i48.tinypic.com/vp9q81.jpg|http://i48.tinypic.com/vp9q81.jpg]

After changing that i got the desier result

ht[http://i46.tinypic.com/20iwbih.jpg|http://i46.tinypic.com/20iwbih.jpg]

Regards

Chinnaiya P

Edited by: chinnaiya pandiyan on Jun 23, 2010 12:02 PM

Former Member
0 Kudos

Dear chinnaiya,

I want it exactly the same way , I did the customizing i still get the similar Color , What other Settings are changed Can you please share , It will be really helpful

Waiting for your reply

Badari

Former Member
0 Kudos

Hi badri ,

Right click on your Bussiness Graph UI and choose Edit customizing .

choose your chart type as PIE

If you have individual series for Profit & loss then you can set the colours in the series option in the over view --> Area Properties -> colour .

In your senario you maintaining in one series so click on globle setting in the OVERVIEW tab --> change the colour order and see ,you will get different colour .

Pls see the below PIc for clear Idea .

[http://i45.tinypic.com/2nlqvc2.jpg|http://i45.tinypic.com/2nlqvc2.jpg]

Hope it will works .

Regards

Chinnaiya P

Edited by: chinnaiya pandiyan on Jun 23, 2010 2:50 PM