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.

Similar Messages

  • 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

  • SSRS 2008 Chart legend colours not matching series colour.

    Hi,
    I believe this issue has been raised before. In SSRS 2005 & 2008 R2 though I am yet to find a solution other than a lengthy (messy) workaround.
    I have a chart based on the following data:
    Data field - Count(ChangeID)
    Category - Change_Categorisation (ie. Maintenance, new hardware etc)
    Series - Change_Timing (Emergency, expedited, normal etc)
    So i am using a stacked column chart to show the category along the X axis and stack the number of changes by their timing.
    In the Series colour setting i am using the expression:
    =iif(Fields!Change_Timing.Value="Emergency","Red",iif(Fields!Change_Timing.Value="Expedited","Orange","SteelBlue"))
    I have also tried
    =Switch(Fields!Change_Timing.Value="Emergency","Red",Fields!Change_Timing.Value="Expedited","Orange",Fields!Change_Timing.Value="Normal","SteelBlue")
    In all cases the legend only seems to refer to the first column in the chart to pick up colours.
    For example.
    The first column for December is Maintenance changes. There are 2 emergency & 1 normal. the only expedited change is in another column (new hardware).
    So the legend shows Emergency as RED, Normal as SteelBlue and Expedited as Steelblue.
    no matter what I do the legend only picks up the colours from the first category. so if the fist category only has 1 timing (eg- Normal). Every item in the legend has the Normal colour (Steelblue)
    Surely there is a fix for this that doesnt involve creating a table to the side of the graph which seems like a really basic way to deal with this issue. I may as well go back to the dark ages and use Excel for my reports or bloody draw them on paper.
    :) calming down now. Thanks for any input on this.

    Hi,
    I have reproduced the issue you posted as the following picture shows. The color of series group “AAA” in the legend is not as the same as the color as the third column.
    Based on my testing, it occurs when the chart meets the following conditions:
    1.   
    Use decision function to specify the Series colors.
    2.   
    The data value of the chart using the aggregate
    Count.
    3.   
    One series group is not contained in the first category column.
    It is my pleasure to help you reflect the issue to the proper department, and you can also submit it at
    https://connect.microsoft.com/SQLServer/ to get an official confirmation.
    If the issue is urgent to your business, it is recommended that you contact Microsoft Customer Support Services (CSS) via telephone so that a dedicated Support Professional can
    assist you in a more efficient manner. Please be advised that contacting phone support will be a charged call. However, it will be free if this is a product issue.
    To obtain the phone numbers for specific technology request please take a look at the web site listed below.
    http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS
    If you are outside the US please see
    http://support.microsoft.com for regional support phone numbers.
    Regards,
    Tony Chain
    Tony Chain [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to convert abap output/excel output to pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Try demo sample program GFW_PROG_PIE
    ot t_code GRAL to find such programs.
    In addition to this please also check the chart engine (cl_gui_chart_engine).
    You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS.

  • How to convert Abap output/excel output into pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Hi Younus Khan,
    sample code to load output to excel sheet.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\test.csv'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = itab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17.
    or,
    U can use the FM
    SAP_CONVERT_TO_XLS_FORMAT
    to convert itab data to excel
    check this FM also
    GUI_DOWNLOAD
    And, for converting into xml format. I did it in ecc6.0
    *& Report ZTESTSDN
    REPORT ztestsdn.
    TABLES: vekp,
    likp,
    vbak.
    TYPE-POOLS: ixml.
    DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF my_xml ,
    data(256) TYPE x,
    END OF my_xml.
    DATA: xml_table TYPE TABLE OF my_xml.
    DATA: l_xml_size TYPE i,
    ld_fullpath TYPE string.
    START-OF-SELECTION.
    SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR = ','
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    pe_bin_filesize = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = l_xml_size
    filename = 'C:\test.txt'
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_size
    TABLES
    data_tab = xml_table
    FIELDNAMES =
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can go use ADOBE AIR for developing the pie chart widget...
    kindly reward if found helpful.
    cheers,
    Hema.

  • 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

  • I have no idea how to set up a pie chart for tracking spending with categories

    This is what I want to do to help me track my credit card spending.
    I want to make a Numbers sheet where i can jot down how much money i spent on a item, and what category that item would go with (example, food, electronics, gas, so on).
    and then i want to have a pie chart that will show much how much money i'm spending in each category and how much of a percentage of the total each category takes up of the whole.
    I have no idea how to set this up in a sheet. I tried typing it in a few times and every time i go to make a pie chart, it never shows me any of the results i want to see.
    can someone please help me set up a sheet to be able to get this information to display correctly in a pie chart?

    Brad,
    Create a table with the categories and the data (for now you can make up the data):
    Now add a chart from the Charts menu in the toolbar:
    Now click the "Add Chart Data" button just below the chart.
    Now select data (from column B) in the table.  Last trick is to click the menu at the bottom-left corner of the window and change the selection to "Plot rows as series" :
    Now add formulas to the table to properly summarize the data from your data entry table using the sumif() function.

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

  • 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

  • Setting Destination URI of a Pie Chart Graph Programatically-OA Framework

    Hi All,
    I have created a OF Page with the following Regions one under the other:
    1. PageLayoutRN
    2. HideShowHdr1 - Hide/Show Header
    3. TblLayout1RN - Table Layout
    4. Tbl1RowLayout1RN - Table Row Layout
    5. Row1CellFormat1RN - Cell Format
    6. Row2CellFormat2RN - Cell Format
    Basically I have a page with a hide/show header, which contains a table with 1 Row and 2 Columns, where 1 column contains an advanced table and the 2nd contains a Graph (Pie Chart).
    In the Row2CellFormat2RN, I have a GraphTable Region under the name PieChart1RN, which contains a graph called graph1 of style Pie.
    As per the OA Framework Development Guide (744832.1) for R12.1.1 on Graphs (Page 255), a Code snippet is provided for setting the Destination URI of the graph programatically.
    This code is as follows:
    if(webBean.getUINodeName().equals("region3"))
       OAGraphTableBean g2 =(OAGraphTableBean)webBean;
       g2.setDisplayDataMarkers(0, true);
       g2.setDrillDownUrl(0, "OA.jsp?page=/oracle/apps/ak/pages/FWK_TEST_AGR_SUM&akRegionApplicationId=601&sal={@Salary}");
       //Test line graph with data markers and drill-down 
       g2.setDisplayToolTip(1,true);
       g2.setDisplayDataMarkers(1, true);
       g2.setDrillDownUrl(1,"http://www.oracle.com");
    } I have tried using this code to set the Destination URI for my graph.
    However, it does not work.
    I do not understand which region name to specify as when I displayed the value contained in webBean.getUINodeName(), it refers to PageLayoutRN.
    In short, I am not being able to set the Destination URI. Even though I have ensured the Bubble Text Property is set to True.
    Can someone pls. help me into adapting this code to my context?
    Thks
    Ravi

    Hi Kumar,
    I have already done it.
    However, it still does not work.
    The controller code looks like it does not recognise my graph region at all.
    Thks
    Ravi

  • Pie Chart Creation from set of Columns.

    Hi all,
    I have got a query in BW. the Query output looks like.
    A     B     C      D       E        F
    1      2     2       3       4         5
    So now the o/p gives a clear view that there are no rows in my Query. Now on the basis of this query i want to make a pie chart showing all the values of ABCDEF in it.
    Please help me to build this.
    Regards,
    Soumyadeep.

    Hi
    Littile modification in last reply. You can create chart based on ristricted Key figures, only if that structure is in Columns. Now for your query you can create separate pie chart for A, B, C etc.
    As these will be treated as separate 'Data Series' & you cannot club more than one data series in pie chart. You have to create Bar or Column chart.
    regards
    Sandeep

  • Hey guys, I'm having trouble matching the colour of the image back ground (white) with the pre-set colour selection. is there a tool that can help me? thanks

    hey guys, I'm having trouble matching the colour of the image back ground (white) with the pre-set colour selection. is there a tool that can help me? thanks

    Your description of the problem is not quite clear so I made certain assumptions. I hope I am rigtht. I believe you have a color patch such as this:
    that you would like to place in an image area that has modeling in its white background. You do not want to lay in a flat color but rather to add a color and not lose the modeling or other background tone. The problem is, after making the selection, if you use Edit > Fill and set the Blending mode to Color, the white background remains white. The only colored background area may be an object's shadow or some similar area that is not pure white. (Image 2) It is an unsatisfactory result.
    If that is an accurate description of the problem, consider this:
    Image 1: The original image
    Image 2: Edit > Fill with the Blending mode set to Color. White remains white
    Image 3: Mode changed to Lab Color. Edit > Fill with the Blending Mode set to Color. Then return to RGB.
    (I would not normally use this green as a replacement color but since it is a Tiffany clock, I chose a light version of Tiffany's trademark color.)

  • Customizing colour in Pie chart

    Hi Experts,
    In my scenario there is a Pie chart which shows the completion and pending of work in percentage. I have done this by creating a category and a series and the pie chart is getting displayed for completion and pending work in default colours. Now i want to customize these default colours, i need to display the completed status in Red and Pending status in green.
    If this is possible please help me out in achieving this.
    Thanks
    Sarathy.

    Hi Pandi,
    For changing the chart type, size, layout, color, shading and also creating the title for you Bussiness graphics you have to go for Customizing . Right Click the Bussiness Graphi UI and Choose  Edit chstomizing .
    and bind your customising id in the context .
    Go through this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81?quicklink=index&overridelayout=true
    Also check this..
    Re: Color Of series in Pie chart
    Cheers,
    Kris.

  • R6i = Pie-Chart only without a legend possible & colour fix ?

    I try to create a pie-chart with a legend. It is possible to set the flag for the legend on, but it don't show me one. Only with other charts it shows.
    Is this correct and is there another way to create a legend ?
    Are the colors from the pie always the same (fixed/defined) or can I fix it ?
    Thanks for you help. Roger

    Hi Shishir,
    Bad news for you... I think the only way to do it is by creating and adding the chart dynamically in the code.
    Regards,
    Mathieu.

  • Problems with pie chart formatting - APEX v2

    Hi - I have created a region with an SVG Pie Chart and set the CSS to display the three segments as red, yellow and green using one of the examples from a previous forum posting. That all works fine, but I still have two issues with the chart:-
    - the legend is displaying too big and is overlapping the right hand region border which looks messy. Is there anyway to force the size of the legend as there is lots of blank space to the right of the labels/values?. If not, is there any way to get the legend to display at the bottom of the area rather than to the side of the chart?
    - the pie chart is 3D but the colours are only displaying on the side, not the top. Is there something I need to set to get this to work OK? Current CSS included below.
    Thanks Caroline
    text{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
    tspan{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
    text.title{font-weight:bold;font-size:14;fill:#000000;}
    text.moredatafound{font-size:12;}
    rect.legend{fill:#EEEEEE;stroke:#000000;stroke-width:1;}
    text.legend{font-size:10;}
    #background{fill:#FFFFFF;stroke:none;}
    rect.chartholderbackground{fill:#ffffff;stroke:#000000;stroke-width:1;}
    #timestamp{text-anchor:start;font-size:9;}
    text.tic{stroke:none;fill:#000000;font-size:12}
    line.tic{stroke:#000000;stroke-width:1px;fill:none;}
    #dial{stroke:#336699;stroke-width:2px;fill:#336699;fill-opacity:.5;}
    #dial.alert{fill:#FF0000;fill-opacity:.5;}
    #dialbackground{stroke:#000000;stroke-width:none;fill:none;filter:url(#MyFilter);}
    #dialcenter{stroke:none;fill:#111111;filter:url(#MyFilter);}
    #dialbackground-border{stroke:#DDDDDD;stroke-width:2px;fill:none;filter:url(#MyFilter);}#low{stroke-width:3;stroke:#336699;}
    #high{stroke-width:3;stroke:#FF0000;}
    #XAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;}
    text{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
    tspan{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;fill:#000000;}
    text.title{font-weight:bold;font-size:14;fill:#000000;}
    text.moredatafound{font-size:12;}
    rect.legend{fill:#EEEEEE;stroke:#000000;stroke-width:1;}
    text.legend{font-size:10;}
    #background{filter:url(#MyFilter);fill:#555555;stroke:none;}
    rect.chartholderbackground{fill:#ffffff;stroke:#000000;stroke-width:1;}
    #timestamp{text-anchor:start;font-size:9;}
    text.tic{stroke:none;fill:#000000;font-size:12}
    line.tic{stroke:#000000;stroke-width:1px;fill:none;}
    #dial{stroke:#336699;stroke-width:2px;fill:#336699;fill-opacity:.5;}
    #dial.alert{fill:#FF0000;fill-opacity:.5;}
    #dialbackground{stroke:#000000;stroke-width:none;fill:none;filter:url(#MyFilter);}
    #dialcenter{stroke:none;fill:#111111;filter:url(#MyFilter);}
    #dialbackground-border{stroke:#DDDDDD;stroke-width:2px;fill:none;filter:url(#MyFilter);}#low{stroke-width:3;stroke:#336699;}
    #high{stroke-width:3;stroke:#FF0000;}
    #XAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;}
    #YAxisTitle{letter-spacing:2;kerning:auto;font-size:14;fill:#000000;text-anchor:middle;writing-mode:tb;}
    .XAxisValue{font-size:8;fill:#000000;}
    .YAxisValue{font-size:8;fill:#000000;text-anchor:end;}
    .AxisLabel{font-size:8;fill:#000000;}
    .nodatafound{stroke:#000000;stroke-width:1;font-size:12;}
    .AxisLine{stroke:#000000;stroke-width:2;fill:#FFFFFF;}
    .GridLine{stroke:#000000;stroke-width:0.3;stroke-dasharray:2,4;fill:none;}
    g.dataholder rect{stroke:#000000;stroke-width:0.5;}
    .legenditem rect{stroke:#000000;stroke-width:0.5;}
    #data1 ,rect.data1 ,path.data1{fill:#FF0000;}
    #data2 ,rect.data2 ,path.data2{fill:#FFFF00;}
    #data3 ,rect.data3 ,path.data3{fill:#00FF00;}

    hi Kishore,
    For this we have to change the .pcxml file for the pie chart .This is the path
    \OracleBI\web\app\res\s_oracle10\popbin\pie.pcxml
    http://obiee101.blogspot.com/2008/08/obiee-cusstomising-your-pcxml.html
    http://debaatobiee.wordpress.com/2009/09/26/customising-graph-obiee-a-charismatic-gradient-effect/
    I am not sure whether it will work or not but try it out
    thanks,
    saichand.v

Maybe you are looking for

  • Problems in the new itunes

    I recently added a song and a tv program to my shopping cart, and when I went to buy them, itunes acted funny, and then just didnt do anything. My songs didnt download or my tv shows either. When I "check for purchases" a big red X shows up and it sa

  • Msi 6163

    What to do, when error massage shows "Floppy disk(s) fail (40) on bootup". Please help

  • Reporting in Toad

    Hi, there is a table as follows : OrgId Orgname country-id prod-description salesqtr 123 ABC 15 AAAA FY07 123 ABC 15 AAAA FY08 456 MNO 20 AAAA FY07 456 MNO 20 BBBB FY07 456 MNO 20 CCCC FY07 Can i get the output as follows in Toad or sql plus : Orgid

  • Illustrator CS2 will not open (I do think it can be acrobat)

    Illustrator, hangs at the  startup screen when "reading fonts". I have read about the acrobat issue but I am running on Mac 10.6.5 the Adobe reader 9.4.1 http://kb2.adobe.com/cps/534/cpsid_53468.html I read many forums and the above link fixed the is

  • Systems in no Unicode

    Hi all, We have systems with different codification to unicode. I know XI uses Unicode, is there any problem conecting XI with no-unicode systems? It shouldn't be...no? Regards, Urtzi.