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

Similar Messages

  • Pie Chart Color Scheme

    Post Author: Janice
    CA Forum: Charts and Graphs
    I have a report written in Crystal Reports XI that has a pie chart in the Report Header displaying counts of activity by "reason code" for a selected time period.  The users have noticed that, when they run the report for different time periods, the same "reason" has a different color on each report.   It seems that the default is to sequence colors based on volume (size of 'pie wedge').
    They would like to have the colors appear linked to Reason Code rather than to volume.  Is there a way to change the pie chart color scheme so that it is coded by "description" not by "count"?

    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

  • Getting the default pie chart colors

    Hello,
    I have a pie and a bar chart that display the same
    information... Pie charts colors are filled automatically, and I
    would like to use those colors for my bar chart as well... is there
    any way to get those colors?
    Tnanks.

    I ran into this issue myself and figured it out here:
    Can I access Flex's default Chart colors? Or can I access a Series' current color?

  • 2D Pie Charts losing assigned custom color

    APEX 3.0
    I have a 2D PieChart with custom colors of Green, Yellow and Red. It is made up up 3 series, series #1 counts new orders (Green), #2 - orders in jeopardy (Yellow) and #3 - orders that missed their shipped date (Red).
    If each series returns a count, then this works fine. If (for example) #2 doesn't return a row, then series #3 displays as Yellow instead of Red.
    On the other hand, 3D Piecharts handle this just fine.
    I personally like the 3D look, but the users want the 2D. Any advise?
    Thanks, Joe
    Message was edited by:
    joelanier

    Hello,
    1. Use the same Chart Color Theme for your charts
    2. Change your query so it always returns the same number of rows (so always, 1 and 2 and 3), even when there is no data : then return 0.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • 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

  • 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.

  • CS5 - Make pie chart, color it, save...crash

    Duplicated this.
    Create a pie chart with two slices. Isolate it. Pull one slice out a bit. Add gradient to both. Color using RGB values in an RGB document. Save. Crashes every time.
    When software companies don't compete, the customer suffers.

    Found another post where CS5 crashes on save with a pie chart.
    CS4 doesn't do it, so I'm using that...just like I go back to Flash CS4 for things that crashes CS5...
    Thanks

  • Pie Chart Color

    Is it possible to add color for each label in the SQL query? I've used custom colors in report attributes, but it didn't help, shows Red for Amber when there are no rows for Red category.
    SELECT '5B3E4D2FB55DB8641C1ED319C93B2A49' LINK, 'RED' label, COUNT(1) dbcnt
    FROM custom$db_metric_31_days a
    WHERE a.metric_guid = '5B3E4D2FB55DB8641C1ED319C93B2A49' AND FLAG IS NULL
    AND TRUNC (a.calculation_date) = TRUNC (SYSDATE - 1)
    AND a.avg_sdv_31_days >= 90
    UNION ALL
    SELECT '5B3E4D2FB55DB8641C1ED319C93B2A49' LINK, 'AMBER' label,COUNT(1) dbcnt
    FROM custom$db_metric_31_days a
    WHERE a.metric_guid = '5B3E4D2FB55DB8641C1ED319C93B2A49' AND FLAG IS NULL
    AND TRUNC (a.calculation_date) = TRUNC (SYSDATE - 1)
    AND a.avg_sdv_31_days BETWEEN 80 AND 90
    AND a.server_name in (
    Can someone help me on this?

    I've fixed it.

  • Can I access Flex's default Chart colors? Or can I access a Series' current color?

    I've created a popup to dynamically add/remove Series from a LineChart and/or AreaChart.  Problem is, I want to keep the Series' line color consistent, and Flex wants to re-assign them from it's default list, which is confusing.
    I don't want to just set the Series.visible to false for two reasons:
    1. I also want the LegendItem to disappear from the Legend
    2. Stacked AreaCharts (type == 'stacked') get messed up when you set one of its Series.visible = false
    So to avoid color reassignment, I want to explicitly set the lineStroke for my Series.  But if I'm using Flex's default colors, I need to either:
    a. Have access to the static default color array - does anyone know where this is???  or
    b. After the Series are drawn (updateComplete?), I need to query each for its lineStroke color and then explicitly set it to that same color.  How do I do this???  getStyle('lineStroke') returns null, and I can't see a way to get at the renderer.
    I'm essentially re-posting the following unanswered posts, which I promise to link back to this if someone can please help:
    Binding to Rendered Chart Data [http://forums.adobe.com/message/186840#186840]
    Getting the default pie chart colors [http://forums.adobe.com/message/36410#36410]
    Please help!

    Matt, thanks for your reply, but unfortunately, for LineCharts, LineSeries.getStyle('fill') always returns 0xffffff (white).
    I finally found that after my LineChart is completely rendered, (sometime after LineSeries' updateComplete), LineSeries.getStyle('lineStroke') and getStyle('stroke') both return the correct Stroke.color values ("lineStroke" refers to the line segment and "stroke" to the data point).
    Rather than fooling around with collecting the actual values dynamically, I just generated some trace() output from a  LineChart with a bunch of Series to create my own static Array from which I can initialize my Series.setStyle(color) as I dynamically add them to my LineChart:
            public static const DEFAULT_FLEX_SERIES_COLORS:Array = [
                0xe48701, 0xa5bc4e, 0x1b95d9, 0xcaca9e,
                0x6693b0, 0xf05e27, 0x86d1e4, 0xe4f9a0,
                0xffd512, 0x75b000, 0x0662b0, 0xede8c6,
                0xcc3300, 0xd1dfe7, 0x52d4ca, 0xc5e05d,
                0xe7c174, 0xfff797, 0xc5f68f, 0xbdf1e6,
                0x9e987d, 0xeb988d, 0x91c9e5, 0x93dc4a,
                0xffb900, 0x9ebbcd, 0x009797, 0x0db2c2
    It turns out there's only 28 unique color values before the color pattern repeats.  I don't see a numerical pattern; perhaps someone with more time on their hands can figure out if there's a function behind this series of values (printed here in binary, decimal, and hex):
            111001001000011100000001  14976769  0xe48701
            101001011011110001001110  10861646  0xa5bc4e
            000110111001010111011001  01807833  0x1b95d9
            110010101100101010011110  13290142  0xcaca9e
            011001101001001110110000  06722480  0x6693b0
            111100000101111000100111  15752743  0xf05e27
            100001101101000111100100  08835556  0x86d1e4
            111001001111100110100000  15006112  0xe4f9a0
            111111111101010100010010  16766226  0xffd512
            011101011011000000000000  07712768  0x75b000
            000001100110001010110000  00418480  0x0662b0
            111011011110100011000110  15591622  0xede8c6
            110011000011001100000000  13382400  0xcc3300
            110100011101111111100111  13754343  0xd1dfe7
            010100101101010011001010  05428426  0x52d4ca
            110001011110000001011101  12968029  0xc5e05d
            111001111100000101110100  15188340  0xe7c174
            111111111111011110010111  16775063  0xfff797
            110001011111011010001111  12973711  0xc5f68f
            101111011111000111100110  12448230  0xbdf1e6
            100111101001100001111101  10393725  0x9e987d
            111010111001100010001101  15440013  0xeb988d
            100100011100100111100101  09554405  0x91c9e5
            100100111101110001001010  09690186  0x93dc4a
            111111111011100100000000  16759040  0xffb900
            100111101011101111001101  10402765  0x9ebbcd
            000000001001011110010111  00038807  0x009797
            000011011011001011000010  00897730  0x0db2c2
    Anyway, it sure would have been nice to have access to this in the API - hopefully I've saved someone else the time I've wasted...

  • 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.

  • 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

  • How to allow custom colors to SSRS Pie-Chart?

    Hi,
     I have a pie-chart in my report.
    Can anybody please tell me How I can allow custom color to each part/slice of the piechart..??or How i can assign cutom pallete to pie-chart?
    BhushanBhushan

    Hi,
    I think u r using one data Field and One category Field in the Graph.
    Then We have use Code Option
    -----Add this in Code
    Private colorPalette As String() = { "Teal", "Gold", "Aqua"}
       Private count As Integer = 0
     Private mapping As New System.Collections.Hashtable()
      Public Function GetColor(ByVal groupingValue As String) As String
            If mapping.ContainsKey(groupingValue) Then
                Return mapping(groupingValue)
            End If
            Dim c As String = colorPalette(count Mod colorPalette.Length)
            count = count + 1
            mapping.Add(groupingValue, c)
            Return c
        End Function
    Finally add this Expression in the Fill Option. And we can add more colors in the Code based on no. of Category
    =Code.GetColor(Category_Field)
     for example =Code.GetColor(Fields!Zone.Value)
    Regards,
    Thiyagu
    I've done everything listed here and in the link provided, but I get an error that reads, "There is an error on line 0 of custom code: [BC30201] Expression expected." I'm using SSRS 2005.
    Does anyone know what this could be?

  • 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 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

Maybe you are looking for

  • Organizing photos...

    i just started using iphoto and im sorting out all my photos and organizing them with the albums inside iphoto. thats all great but when trying to find photos to upload to my myspace they get lost inside date codes. my question is why do they not get

  • Greyed out images

    I imported a folder of raw images but had to shut down the computer before I could develop them. When I went back to work on them they are greyed out and I cannot develop them. How do I fix this?

  • Delete photos in an album

    Using iOS 8.1.3 on an iPad. In Photos, I can delete all photos, except the ones that I have put in an album. Can't figure out how to either delete the whole album or individual pictures in it. Not using iCloud.

  • 2.0.1 Major Problems

    We just upgraded to DVDSP4 and Compressor 2.0.1 with it. I export a DV Quicktime from Avid and try to convert it to an m2v in Compressor. Certain presets hard crash the entire system (as in a full freeze up) and I must restart. Others (seems to be si

  • How to use Control Key with other key as Ctrl+C

    I am using this code to access Shift key + C addKeyListener(new KeyAdapter() public void keyPressed(KeyEvent KEv) if(KEv.isShiftDown() && (KEv.getKeyCode() == KEv.VK_C)) //Shift + C key down Please tell me how to do with Control Key? Vishwajeet