Colour coding slices of pie chart

Hi,
I'm generating a pie chart from a list of traffic light colours (red, amber, green) and would like to colour the pie slices to match the colour reported i.e. the red segment should be red etc.
I've seen an example here:
http://htmldb.oracle.com/pls/otn/f?p=11933:32
which I have got to work but this only works if all of the colours are returned i.e. each of the status indicators have a value greater than zero. If any of the status indicator values have zero occurences then the coulours get mismatched. I assume this is because the slices are coloured in order of display. I tried to correct this by forcing each status to be selected even if the occurence was zero but this seems to give me bizarre results with the pie chart displaying the top portion in the wrong place.
Has anyone got any ideas that might help resolve my problem?
Cheers,
Andy

Hello,
What you can do is set a hidden page item to the proper css using some plsql to output the css you want based off of a query.
And then use that item in the custom css area as an Item substitution.
Example
set page item value SVG_CSS using some plsql logic to
#data1 ,rect.data1 ,path.data1{fill:#f00;}
#data2 ,rect.data2 ,path.data2{fill:#0f0;}
#data3 ,rect.data3 ,path.data3{fill:#00f;}
and in the Custom CSS attribute use &SVG_CSS.
Carl

Similar Messages

  • Showing values of each slice of pie chart

    How to display  the values of each slice of pie chart in the chart without selecting each legends  like a pointer showing values of each slice ?
    Edited by: Rimily on Aug 4, 2011 9:18 AM

    Hi,
    Please go through below Thread may be usefull
    [Mouse Rollover]
    hope it helps!!
    Regards,
    Manoj Bilthare

  • Can't group slices in pie chart

    I used to be able to shift click on a number of pie slices and group them and then drag (explode) the group from the rest of the pie. Doesn't seem to work now. What am I doing wrong?

    Thanks for the confirmation. It was such a cool function! Disappointed to see it gone. I will post feedback. Unfortunately it seems that if the file gets opened in the '13 version it won't let you go back. When I try it says I ned a later version of Numbers!
    Thanks for the help!

  • To collect small slices into a secondary, callout pie chart in SSRS 2005

    Hi Guys, 
    There exists a property in pie chart in SSRS-2008 which can consolidate the small slices on pie chart. But I am unable to find the same property in SSRS-2005. 
    Is this property only available in SSRS-2008 ? If yes how can we achieve the same functionality in SSRS-2005 Pie Chart ?
    Regards
    Consolidating Small Slices on a Pie Chart
    Consolidating Small Slices on a Pie Chart
    Consolidating Small Slices on a Pie Chart
    Consolidating Small Slices on a Pie Chart
    Consolidating Small Slices on a Pie Chart

    Hello,
    Based on my research, the CollectedStyle property that collect small slices into one signal slice or a secondary, callout pie chart is available from Reporting Services 2008. So it is not supported in Reporting Services 2005.
    For example, you are using the query below to return the SECTION and DIVISION fields as the chart fields: SELECT SECTION , DIVISION FROM TEMP, and you want to collect small slice COUNT(DIVISION) smaller than 5 as the callout pie chart. To work around this
    issue, we can create two charts on the surface, one as the big and collected slices chart, another one as the secondary, callout pie chart. For more details, please refer to the following steps:
    We can use the query with some conditions like below to return the fields for the main chart:
    SELECT CASE
       WHEN COUNT(DIVISION) <= 5 THEN 'Other'
       WHEN COUNT(DIVISION) >5 THEN SECTION
       END  AS SECTION, COUNT(DIVISION) AS DIVISION
     FROM TEMP
    GROUP BY SECTION, DIVISION
    We can use the query like below to return the fields for the callout pie chart:
    SELECT CASE
          WHEN COUNT(DIVISION) <= 5 THEN SECTION
       END  AS SECTION, CASE
          WHEN COUNT(DIVISION) <=5 THEN COUNT( DIVISION)
       END  AS DIVISION
     FROM TEMP
    GROUP BY SECTION, DIVISION
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to Display result value on Pie chart in wad

    Dear Experts,
    I'm useing WAD to create web template, in that I have a requiremnt to develop Pie chart and it should show material cost according to material type for each slice on Pie chart. I have developed a WAD template for the same and Pie chart as well but I can not see the respective material type cost on Pie chart, where as I can see those values in tool tip when I move mouse over the pie chart, I understand I'm missing a small setting can you please help me to find that setting so that user can see values directly on pie chart without moving the cursor on the same.
    Thanks and Regards,
    Chandrakant.

    are you r using wad 7.0 or 3.5
    in 7.0  right click on the graph, edit  nyou wil be in the wizard go on step 3 and try to change the series and make sure visilibility is checked
    if this doesnt work then click refine and go to series and make sure show lables are checked.
    try this.

  • How do I link to a table from a slice of a pie chart?

    My project manager is after me to add a feature to a pie chart built on one of my tables. The code that selects from the table for the pie chart is this:
    select 'http://apexdevapp1.ci.raleigh.nc.us:7777',activity_type,count(ID) total FROM eba_ver2_cust_activity
    where ACTIVITY_DATE BETWEEN NVL(TRIM(:P23_START_DATE), '01-JAN-2001') AND NVL(TRIM(:P23_END_DATE),
    '31-DEC-2099')
    group by activity_type,'http://apexdevapp1.ci.raleigh.nc.us:7777';
    She wants to be able to click on a slice of the pie ("activity_type") and link to another page showing a report limited to that activity_type, selected from the same table. I know how to link from one interactive report to another, but I don't know how to do it from a slice of a pie chart. Does anybody know how?
    I'd appreciate some guidance on this.
    Steve the n00b in Raleigh NC

    Denes Kubicek wrote:
    Have you compared that link with any of your apex application links in the browser? ;) :)
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------I may be missing the point of your question, Denes, but all my links are implemented from the Link Column section under Report Attributes. They are not mentioned anywhere in the Select statement, unlike yours.
    Steve "the n00b" in Raleigh NC

  • Pie chart doesn't show the label of the last slice

    Post Author: saschaherrle
    CA Forum: Charts and Graphs
    Hi there...
    I have this problem with displaying the label of the last pie slice of my report. It is working perfectly fine in my testing environment, but it just doesn't want to show in the client environmet... I don't know what to try anymore. I've tried all the other label location options, but they also dont help. There are five slices on the pie chart with the following values:
    1.9%
    43.6%
    51.1%
    2.3%
    1.1%
    All the labels and feeler lines are showing except for value number 5.
    Any help or advice would be greatly appreciated. Thanks
    P.S. I'm using Crystal Reports XI Version 11.0.0.1994 and the client is just running the Crystal Runtime (Maybe this helps... I hope)

    ewilly wrote:Sorry to say that but i'm not unhappy to see i'm not alone to encounter this issue
    I aggree with you : it's only a partial issue as those partitions are mounted under /media with their label name.
    As krusader is able to retrieve the label name i don't think it's an udisks issue so it's more related to a kde functionnality. I looked for missing (optionnal or not) dependencies but without success.
    Any idea is welcome... perhaps opening a bug could help ??
    I have run out of ideas.
    If you tried krusader, yes, it is quite safe to assume it is not a udisks problem, since I tried nautilus which uses udisks2. I also would rule out udev/systemd. Leaves solid, kdelibs, and the kdebase sources.
    As said, on gentoo, kdelibs are compiled with udev dependency which I have not seen in the pkgbuild for kdelibs.
    I think a bug report is a good idea.
    Last edited by artoo (2012-09-06 18:01:49)

  • Can a Pie Chart have a variable number of slices?

    Is there a way to dynamically limit the NUMBER of slices that a pie chart shows?
    For instance, sometimes there might be 10 elements, sometimes 6 (last 4 are 'blank') or maybe 5 (last 5 are blank).
    Yes I know I can keep on reducing/increasing the Excel cells to include...but is there a way to include only certain ones as the data exists?

    My Behaviour tab for my pie chart does not HAVE the "ignore end blanks option"
    A Pie chart behaviour only includes "Display Status, Display Status Key, Entry Effect, Entry Duration and "Animation Enabled"
    I can't seem to find the "Ignore End Blanks" on any tab

  • Getting the field value of a clicked on pie slice in a pie chart?

    I have tried and searched for hours and can not get this
    simple little thing to work.
    I have a pie chart with the following event handler:
    itemClick="chart_click(event)"
    The pie series comes from a simple httpservice that has a
    country and a count:
    <mx:PieSeries
    field="count"
    nameField="value"
    labelPosition="callout"
    calloutGap="5"
    labelFunction="display"
    showDataEffect="{interpolate}">
    All I want to do is capture the value of the nameField (EG:
    Canada)
    I have no problem getting the index of the selected series
    but I can not get the nameField value of that slice. This is what I
    have:
    public function chart_click(e:ChartItemEvent):void
    Alert.show(searchByPieChart.series[e.hitData.chartItem.index].nameField);
    All I get is the string "value" which is the name of the xml
    tag bound to the nameField. What do I need to do ?

    Uggg.
    I got it:
    Alert.show(e.hitData.item.value);

  • Pie chart from Largest slice of another pie chart.

    Greetings!
    I'm trying to come up with a method which will allow me to create a pie chart of the subgroups from the largest slice of an existing pie chart. The "parent" pie chart will change depending upon the parameters given in the report.
    declare @dataTable table (category varchar(10), task varchar(10), timeSeconds int)
    insert into @dataTable (category, task, timeSeconds)
    values
    ('Alpha','Scrub',100),
    ('Alpha','Sweep',100),
    ('Alpha','Polish',100),
    ('Bravo','Wash',200),
    ('Bravo','Dry',200),
    ('Bravo','Fold',200),
    ('Charlie','Paint',300),
    ('Charlie','Sand',300),
    ('Charlie','Spackle',300)
    In this example, when a pie chart is produced, Charlie would have the largest slice. I then want to produce a pie chart showing only the tasks contained within the Charlie category, but which has the flexibility to render if the Alpha or Bravo groups are
    the largest slice next time.
    Thanks

    For anyone else attempting the same thing: I wound up bringing in a reference to the largest slice using a subquery in the initial query, and using that column as a filter on the second pie chart.
    I was hoping for a solution from within SSRS itself, but settled on that. I'll leave the question open in the hope someone knows how to achieve the same result from within SSRS.

  • Pie Chart Slice Label Percentage + Label

    Hi,
    i'm newbie of Publisher 11. I've a problem. I've created a DataSet and a report containing a pie chart using wizard of Publisher as written at following link:
    http://allaboutobiee.blogspot.it/2012/04/working-with-bi-publisher-11g-part3.html
    My chart shows near each slice the percentage value, but it should show the percentage value + corresponding legend text. I've changed all chart properties on left side of window, but it doesn't work. I read that i must set the value LD_PERCENT_TEXT. But where????? How can i modify XML? I must export the report in OBIEE to have more functionalities? Can you explain me what to do step by step because it's the first time i use Publisher 11
    Thanks
    Giancarlo

    do paste this in the alt text of the chart ,
    Right click the picture , select format picture and go to alt text tab.
    paste this in between the graph element and not at the end or beginning.
    <SliceLabel visible="true">
    <ViewFormat decimalDigit="1" decimalSeparator="." decimalDigitUsed="true" decimalSeparatorUsed="true"/>
    </SliceLabel>

  • Pie Chart -- Separate Slices

    Hello, I have created a Pie Chart. I was wondering if anyone knows of a way to separate the slices. I believe Oracle may have a feature to explode (separate) one slice of the pie chart away from the other slices. However, I was wondering if there is a way to separate each slice from each other.

    Hello,
    To "explode" a pie, just add the following lines in the "Graph Settings" :
    <SeriesItems>
    <Series id="0" pieSliceExplode="100"/>
    <Series id="1" pieSliceExplode="100"/>
    <Series id="2" pieSliceExplode="100"/>
    <Series id="3" pieSliceExplode="100"/>
    <Series id="4" pieSliceExplode="100"/>
    <Series id="5" pieSliceExplode="100"/>
    <Series id="6" pieSliceExplode="100"/>
    <Series id="7" pieSliceExplode="100"/>
    <Series id="8" pieSliceExplode="100"/>
    <Series id="9" pieSliceExplode="100"/>
    <Series id="10" pieSliceExplode="100"/>
    </SeriesItems>
    Regards

  • Pie Chart slice breakup

    Hi Experts,
    I am having a requirement in OBIEE 11g of showing data as Percentage in a Pie Chart,the chart will be be having two slices(SLICE 1, SLICE 2).
    And the SLICE 1 breakdown needs to be displayed as STACKED BAR CHART.the bar chart should also show data as percentage.
    I am using a common measure for both the charts, in PIE CHART i have shown the measure count as Percentage,But in Staked bar chart i am not able to show the data in percentage.
    A SLICECODE column i am using for the SLICE 1 and SLICE 2 breakup in the PIE CHART, and in the BAR CHART i am showing only SLICE 1 data by placing the SLICECODE column in the Section, and set the "Maximum number of section slider values" as 1 in the section properties
    .Plz suggest me how to show the data as percentage in the bar chart
    Refer the link below for the image.
    http://img577.imageshack.us/img577/2631/waiver.jpg
    thanx in advance.

    The image given uploaded in the link in my below post is the required report output.

  • Anychart pie chart - setting colours to match output (RAG)

    Hi,
    I have a table detailing outstanding issues each with a traffic light status of either red, amber or green. I would like to create an anychart pie chart whose colours match their status to give an easy visual representation of the data.
    I have managed to get it working if there's data in the table for each status type; I've used customised colours in the pie chart and used ORDER by in my SQL (the order of the customised colours listed to match the order of the SQL output), however, if one of the status' has a null value, the colours are assigned Amber 1st, Green 2nd and Red 3rd meaning that if there are no issues of Amber status the green status issues will be amber in colour on the pie chart etc.
    Is this possible to assign specific colours and if so how can I do it?
    I'm working on Apex 3.2.1.
    Thanks in advance

    I've managed to sort this now.
    In case anyone is interested, I created a view that would display the totals for each RAG status including a 0 if total is null and then set custom colours for the pie chart in the order to match the SQL output (i.e. A (amber) first, G (green) second, R (red) third). Simple but it works for my needs.

  • OBIEE 11g pie chart showing the slices by different measures

    Hi,
    We are using OBIEE 11g. We have a requirement to show PO Met Count , PO Under Count, PO Over Count as a slices in a pie chart. However Pie graph in 11 g is slicing only by a dimension and not by the above measures. This was possible in 10g. I want to know if this a limitation in 11g or is there a way around this.
    Regards
    Purvi
    Edited by: user13054333 on Dec 1, 2010 11:20 PM

    HI,
    I tried to slice by measure by dragging the column to slice size section. I have 3 metrics PO Under Count and PO Over Count which add up to total PO count. So I want my pie to ahve 2 slices one for PO Under Count and other for PO Over count. However when I drag the 2 metrics, it shows me 2 pies, one for Over and the other for Under count.
    Regards'
    Purvi

Maybe you are looking for

  • Add a content editor web part to right side of to default searchresults layout in search center

    i need to display a content editor webpart in right side of search results page Is it possible to do it without making changes to the layout.In page i dont have a webapart zone on right side to add content editor to right.Is it possible to add it to

  • Monitor flickering blue? (Not from Display)

    My Macbook '09's monitor is flickering blue.  It's usually only the top right corner, 2x1", that's tinted blue. Sometimes it'll extend over to 4", sometimes it'll fill the whole screen (it usually does this when I push the monitor all the way back, b

  • Quick Migration from Access db to Oracle using Sql Developer

    Hey I created a connection to an Access DB and then did a quick migration of the tables and data into my Oracle schema. Great! Now if I add a new table to my Access DB, how do I get this new access table into my Oracle schema without having to do the

  • Project system: Purchase requisition coming from Networks

    Dear Experts, I have a tricky problem. I want to exclude a specific number range for purchase requisition coming from the Project system. The current number range I have for the purchase requisition is let say: 10000000 - 19999999. I want to use anot

  • Where is the glossary .xml file found

    Hi I was trying to locate the .xml file that populates the Glossary widget so that I could copy it and create my own editable .xml file to import. Can anyone tell me where I would find it? Thanks Mark