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
Similar Messages
-
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? -
How to customize Flash Chart color scheme (Look 1 etc..)
Hi,
Is their any way I can customize the Flash Chart color schemes (Look 1, Look 2). I know there's a "Custom" option but I'd like to define what Look 1 is so that I don't need to use custom values for each chart.
Thank you,
Martin
[http://apex-smb.blogspot.com/]Thank you Dimitri
What you suggest is what I am currently doing.
But let's say I have to change the colors in all my graphs, I would have to go through all of them and change the "Custom Colors".
I was looking for something similar to a template where I would only have to change the color definition in one place... -
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 AMThank 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 youhi,
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,
NoraHello,
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 -
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 CloudYou 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 -
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... -
When I change my Keynote pie chart to a 3D pie chart it loses the master page color scheme, becoming rock patterns instead. I haven't been able to get it to return to the original color scheme.
Thanks for the response.
On the first issue, unfortunately formatting the legend using that technique results in no change to the legend. The only way I was able to get it to resize was by resizing the entire chart area.
On the second point, I must be missing something. Do you mean that there is no way to format a chart such that all slices have the desired formatting at runtime unless the report is always run with the same parameters? I might as well just draw a static picture :/ -
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 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 'segments' 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 'defined' - can this be extended with custom colors?. I know you can set colors for specific values but as the list is dynamic, I can't do that. </p><p>I also have a legend defined which shows the person'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's name - however, it's not always easy to tell which name is associated with which 'segment' 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've been looking at the Chart Expert, CR Help and the forums but have not seen an answer to either question - I'm hoping someone can tell me if it'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
-
Hi, expert. I need your help about an report to , I need check if all input GR and IR with the registers of the documents 50...and 51...was input an SAP. Have any t-code standard for this it. PS: MB5S - no good. Tks Armando
-
Can i install a copy of photoshop cs6 on my laptop
This year I downloaded Photoshop CS6 for my desktop and now want to add a copy to my laptop. Please tell me how to do this. Thanks.
-
No Oracle on Redhat 8.1 or 9
To Whom It May Concern, Due to the new POSIX thread library on RH 8.1 and 9 oracle products no longer install because jdk 1.4.1 is required. This is a real disappointment. Is there any possiblity that Oracle can release Oracle 9.2 client installer fo
-
Forms services, JINitiator, Webutil and scripting
Hi all, We build a forms / reports based application that runs on Oracle Application Server 10g. The application uses Webutil. The first time the application is started from a desktop there is a download / install procedure that comprises the followi
-
Production and standby upgrade steps..
Can anybody tell me steps for applying patch and upgrade steps of production and standby database. I have applied patch and upgraded test database, Now I want to apply it on production & standby database. I checked the readme its says review document