Pie Chart Sector Color

Hi,
I am using below query to create a flash pie chart. It return count of "RED" , "GREEN" and "YELLOW" from the color field
I used the custom color to color first value as "RED", second as "GREEN" , and third as "YELLOW"
select  null link,
            color ,
            count( color ) value
from table;Above is working fine if all RED , GREEN AND YELLOW ARE GREATER THAN ZERO.
Now if there is no RED in the filed, then PI CHART contain only two region one for Green and second for Yellow.
Problem :--
If red is not there the value representing the count is green is show in red color.
How to avoid this
Thanks
Shijesh

Hi Andy,
I tried the above method but its not working for me..
here is the query which I am using..
DECLARE
vqry varchar(5000);
begin
    vqry := 'select link , LABEL , sum(value) from
(select null link, ''Red'' LABEL , user_id , COUNT(SR_PROJECT.PROJECT_STATUS_ID) value
from  SR_PROJECT where SR_PROJECT.PROJECT_STATUS_ID=1 and
SR_PROJECT.CURRENT_STATUS_ID NOT IN ( 5 , 6) group by user_id
union
select null link, ''Green'' LABEL , user_id ,COUNT(SR_PROJECT.PROJECT_STATUS_ID) value
from  SR_PROJECT where SR_PROJECT.PROJECT_STATUS_ID=2 and
SR_PROJECT.CURRENT_STATUS_ID NOT IN ( 5 , 6) group by user_id
union
select null link, ''Yellow'' LABEL , user_id , COUNT(SR_PROJECT.PROJECT_STATUS_ID) value
from  SR_PROJECT where SR_PROJECT.PROJECT_STATUS_ID=3 and
SR_PROJECT.CURRENT_STATUS_ID NOT IN ( 5 , 6) group by user_id )';
if :P50_PROJECT_OWNER <> 0 OR :P50_PROJECT_OWNER <> NULL THEN
    vqry := vqry || ' where USER_ID = ' || :P50_PROJECT_OWNER;
END IF;
vqry := vqry || ' group by  LABEL ,link';
return vqry;
end;I'm using Function Returning SQL Query. Is this the reason why I'm not able to get the result

Similar Messages

  • Pie Chart Legend - colors and sorting value

    <p>Hi,</p><p>I have a pie chart with around 20 &#39;segments&#39; representing names of people - so it looks like several of them have the same color.</p><p>So my first question is do the standard 12 colors repeat after 12 segments have been &#39;defined&#39; - can this be extended with custom colors?.  I know you can set colors for specific values but as the list is dynamic, I can&#39;t do that. </p><p>I also have a legend defined which shows the person&#39;s name and then the value - either a percentage or a count etc.    From top to bottom, the legend lists the entries alphabetically by the person&#39;s name - however, it&#39;s not always easy to tell which name is associated with which &#39;segment&#39; and using labels is not an option as they are too long and there are too many of them to be readable<br /></p><p>So what I would like to do is have the legend displayed in numerical size order - e.g. person with largest % is at the top, smallest % is at the bottom etc.</p><p>I&#39;ve been looking at the Chart Expert, CR Help and the forums but have not seen an answer to either question - I&#39;m hoping someone can tell me if it&#39;s possible or not (and if so, how do I do it!).</p><p>Thanks <br /></p>

    Hi,
    If you go to the Chart Expert, on the data tab, you can choose the Top N option. From within there you can get your legend sorted based on the highest or lowest percentage. You can also group information so that you only see the top 5 or lowest 10 or whatever you want.
    Also when I create a pie graph based on 20 plus pieces of data it isn't resusing the colors, but they are somewhat similar. I usually do a group of the top 10 or so, then have an others category for situations like this.Â
    Rody

  • Pie chart: setting colors of series via DBF

    Hello,
    I am working with Crystal Reports XI on a report that's creating a pie chart from a DBF file.
    The DBF, the report obtains it's data from, can contain a variable number of data. Due to this, the number of series, the chart is made up of, cannot be predictet in advance.
    Now, my question is:
    Is it possible to make each of the chart's series retrieve it's own color from a cell in the DBF file?
    In advance, thanks for your help!
    Sascha.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Pie Chart - Adding Colors

    I have created what should be a simple pie chart, with 8 pieces to the pie. I chose the following options for my chart: "Chart Colors, 3D Texture Fills, Fun." Unfortunately, only 6 colors are showing up. I have tried every way I can think of to add colors and have been able to physically change colors on the chart - but not with "Texture Fills."
    Any help out there for this?
    Thanks,
    rlbier

    True the Chart color option only offers 6 colors however you can set colors using the color palette.
    Open the color selector:
    +Menu > View Show Colors > select a color sample > drag onto a wedge+
    Repeat for all the wedges.
    You will have to redo all this if you change the chart type, so leave till last after you have sorted out the overall appearance.

  • Pie chart slice color

    Hi otn ,
    using JDev 11g 11.1
    i have status table
    SELECT DocStatus.ID,
    DocStatus.DESCRIPTION
    from DocStatus
    and 6 status inside (inprogress , not finish yet , finished , last date ,finished after due date , x)
    and i have a view object to represnt a table to dispaly docs report
    also a view object to dispaly pie chart
    SELECT
    COUNT(DOC_TRANSACTION.TRANSACTION_STATUS) TRANSACTION_STATUS,
    DOC_STATUS.DESCRIPTION DESCRIPTION
    FROM
    DOC_TRANSACTION,
    DOC_STATUS
    WHERE
    DOC_TRANSACTION.TRANSACTION_STATUS = DOC_STATUS.ID
    the requirment is to display pie chart with this color for status (not regular) ( inprogress --> yellow , not finished yet --> red,finished-->green,last date-->white,finished after due date-->blue,x-->brown)
    any one can help ?
    Edited by: nour3eny on 21/11/2009 02:00 م

    the following article shows the integration of jfreechart with oracle adf/jsf in a very simple and elaborate manner. I found this one very useful.
    http://oracle-latest-technology.blogspot.com/2010/02/creating-chart-in-oracle-adf-using.html

  • Cuic report - pie chart static color bug (CSCul65722)

    Hi,
    I would like to know the fix release plans for the bug CSCul65722. 
    Thanks & Regards,
    Guna.

    Hi Guna,
    please raise your question at the contact center:
    https://supportforums.cisco.com/community/5926/contact-center
    you are in the ServiceGrid Support forum, unfortunately we can't answer this question.
    If you like to learn more about ServiceGrid i'm happy to help you.
    best regards
    Patrick

  • How to assign specific colors to itemcolumn in pie chart?

    I'm trying to figure out the CF pie chart specific color
    assignment to specific distinct values, i.e. a specific color is
    assigned to a specific status value so we have consistency across
    diff charts; say value PASSED is always GREEN. Help? any idea?
    thanks

    Ashka, thanks for reply, unfortunately it didn't help. I do not have "shadow" option ticked anywhere. If I do tick the shadow, an additional shadow also appears, so this shadow is somehow built into the pie-chart by default. No matter what font of color I pick that shadow is there.
    Here is a screen-shot:
    http://www.piccdrop.com/images/1227030290.png
    Thanks for your help.

  • Is there any way to scroll pie chart labels

    is there a way to have a scroll bar for the pie chart key
    Many thanks

    Hi,
    I haven't found how to make legend scrollable but I can suggest to put list box with color alerts. The listbox will  show each series of pie chart and color alerts will indicate the color of each slice.
    So, simply instead of using pie which can't support scrolling in the legend put listbox which supports it.
    In addition, I believe you have already been asked for showing values on each slice of piechart. On this week, service pack 3 have been released. By using this service pack, you can start to show values on the charts.
    Pavel

  • How do I update the colors on a 2d pie chart after adding 3 new variables

    I have added 3 additional items to a 2d pie chart.  Unfortunately, when the data is displayed the recently added items are displayed with the SAME colors as the first 3 items in the chart.  I need all variables to display in distinctly DIFFERENT colors.

    Hi tarheel,
    You can click on the color you want to change and go to the style tab:
    You can do it there. I have also changed colors after clicking the data tab from within edit data references.
    quinn

  • PIE Chart color assignment

    I have a Pie chart where the actual data values are Green, Red and Yellow and the user wants the chart colors to be same as the data values.
    Is there any way I can do that?
    Currently using APEX 4.0.1.00.03
    Any help would be much appreciated.
    Thanks, Greg
    Edited by: Greg McEachern on Dec 4, 2012 10:38 AM

    Thank you Matthew. That worked kind of.
    The issue is the query returns Yellow, Red, Green, Black in that order. So when I do the custom colours in that order everything is fine when all those 4 values are returned. But if no data comes back for Red. The data values for Green show up as the color Red and the Black shows up as Green. Any way I can resolve that?
    Thanks, Greg

  • PIE Chart Color Highlight - setting colors

    Hi
    PIE Chart showing default colors even after setting the diffent colors to OIE chart slices from Color Highlight tab.
    PIE chart is showing only one slice when I select Data for the PIE Char is "For all records".
    Could you please let me know how to set the different colors for slices?
    Thank you

    hi,
    As you are selecting 'Color Highlight' for different Pie Slices,  "For all records" option shouldn't be selected.
    It should be "On Change of".
    Then obviously you will see the colors specified in 'Color Hghlight' tab.
    Regards,
    Vamsee

  • Change colors in multiple pie chart - with legend

    I need to change the colors of groups shown in multiple pie chart diagram in CR XI.
    I managed to actually change the colors in the diagram by using highlighting rules in the wizard. (Sorry, I need to guess the correct English terms since I am using the German version.)
    But the colors in the legend are not affected by the rules, so the legend displays colors which are not shown in the diagrams at all. How can I fix this?
    Thanks in Advance
       Andreas

    Hi Andreas
    I have the same problem.
    I found this BO note:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3131383434373026
    I says that this behaviour is by design and cannot change
    Not what you would expect really! 
    If the series colour can be changed then why does the series marker colour not match the series it represents?
    Patrick

  • Pie Chart in WEBI is Grey color

    Hi All,
    As part of my project requirement I need to develop a WebI report with Table and Pie chart.I selected the pie chart, intially it was in grey color and assigned the data to chart .When I tried to change the color of the chart it is not displaying colors.Please suggest me how to change the color of pie chart.
    As I gone through the posts in the SDN couldn't found much relevant information.
    Regards,
    Saroja

    Hi Saroja,
    I'm experiencing exactly the same problem. Did you by change find a solution in the meantime?
    P.S: I'm using Webi Rich Client version 14.0.9 build 1345
    Regards, Raimond

  • Don't understand pie chart color manipulation

    Hi,
    I've tried changing the colors of my pie chart in the CSS file, but I can't seem to figure out what to change. I don't think I understand how it works.
    The line I tried to modify is:
    #dial{stroke:#336699;stroke-width:2px;fill:#336699;fill-opacity:.5;}
    Is this the right line?
    Thanks,
    Nora

    Hello,
    No that line controls the part of the dial chart.
    take a look at this example http://apex.oracle.com/pls/otn/f?p=11933:32
    What your going to want to mess with will look like this
    #data1 ,rect.data1 ,path.data1{fill:#336699;}
    #data2 ,rect.data2 ,path.data2{fill:#FF0000;}
    #data3 ,rect.data3 ,path.data3{fill:#00FF00;}
    #data4 ,rect.data4 ,path.data4{fill:#0000FF;}
    #data5 ,rect.data5 ,path.data5{fill:#DDDDDD;}
    #data6 ,rect.data6 ,path.data6{fill:#FFFF00;}
    Carl

  • Pie Chart Colors

    So I have created a pie chart using the Pie Graph Tool in AI, the data is accurate once it is made, but I cannot change the colors.  After entering in the numbers into the cell I select the check mark.  It makes the pie graph.  Doesn't let me select the separate slices alone so I expanded the entire graph, then direct select to change colors.  It lets me select the separate slice, but when I go to change the color it either doesn't work it changes from one shade of grey to another.  I need actual color.   
    Any suggestions? Have tried making several different graphs but still the same issue.  Using Creative Cloud

    You should be able to direct select single parts of a "live" graph.
    This has lead to corrupt files in some cases though. So you might want to test this thoroughly.
    If the color panel doesn't show color sliders, try and select CMYK from the panel menu. If that doesn't show, apply a color swatch first and then change its values.

Maybe you are looking for