on 06-22-2010 1:08 PM
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
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.