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

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?

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

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

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

  • Automatic Fill colors for Report Builder pie charts and graphs are too repetitive and hard to differentiate

    I have pie charts or other graphs that show multiple results (7-20).  I set the "fill" colors to Automatic so that the results are dynamic (I don't want to specify a color for each result because I will then be limited that those results--I
    prefer it to be dynamic).
    I noticed that once you get above 4 or 5 results, no matter which palette is used, the "automatic" colors are so closely similar that it is hard to differentiate which color pertains to which result (group).  For example, you could have a
    reports that breaks the results into age groups like 1-18, 19-21, 22-25, 26-30, 31-41, 41-50, 51-65, 66-80, and 81+.  By the time you review the results, there's likely to be 3 pairs of colors (or more) that are so closely similar that you can't
    tell them apart (2 shades of yellow, 3 shades of blue, 2 shades of orange, or green, or teal, or purple or whatever).
    Is there a way to use Automatic for the color scheme (I don't care which color pertains to which category) but also specify to not use colors that seem to bleed together (so that someone viewing the report can actually tell the difference)?  Using SSRS
    2008 Report Builder, if it makes a difference.

    Hi JNehman,
    Reporting Services provides a list of predefined, built-in palettes that you can use to define a color set for series on your chart. All built-in palettes contain between 10 and 16 color values. You cannot extend the built-in palette to include more colors,
    so if you need more than 16 colors, you must define a custom palette.
    A custom palette let you add your own colors in the order you want them to appear on the chart. A custom palette is especially helpful if the number of series in your chart is unknown at design time. For more information, see
    Define Colors on a Chart Using a Palette (Report Builder and SSRS).
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • 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 to create a static colors to the pie chart based on condition

    Hi,
    I want to create a pie chart like to get the colors based on the values in the label column as defined.
    Is it possible to create such pie chart.

    Tulasi 1243 wrote:
    Hi,
    I want to create a pie chart like to get the colors based on the values in the label column as defined.
    Is it possible to create such pie chart.I don't think so because that will be too dynamic, only thing you need is populate a hidden item on the page with comma delimited list of colors. and use it with the combination of Custom Color scheme and specify the hidden item example. PX_COLORS
    This is what apex help says :
    Enter colors separated by comma, or an item in the application that holds a comma separated list of colors.Set of Custom Colors will be used to change chart colors automatically if you selected Custom option for the Color Scheme.
    For example:
    Comma separated list of colors:#005381,#0D813D,#BB8199
    Item Name:P1_COLORS

  • 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

  • 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

Maybe you are looking for