Bind RGB color values to pie chart slices?

Is there anyway IN CR XI R2 to data bind Red, Green, and Blue colors to the Color property of a pie chart slice?

Something like this, JS Bin - Collaborative JavaScript Debugging</title> <link rel="icon" href="http://static.jsbin.…

Similar Messages

  • Display three Values in Pie charts

    Hi All,
    I want to display three Values in Pie Chart(%, Value and one more field). Please suggest me any solution for this.
    For Eg Pie chart should display value lie this :- Nokia, 25,025, 38.52% (It consists of three differet values)
    Thanks,

    I am not sure if you could get the concatenation to work.
    But here are some ideas (please post if you get the solution):
    - Take a look at the list of other formatting options based on the following link:
    http://www.oracle.com/technology/products/xml-publisher/blog/xsltext/10134/oracle/apps/xdo/template/rtf/XSLTFunctions.html
    - Another alternative is to customize the class file : oracle/dss/graph/SliceLabel.class located in bipres.jar
    You would need to customize it to do what you need.
    a) Modify this one so that it is used by the BIP Server
    C:\OracleBI\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\WEB-INF\lib
    b) Modify this one so that it is used by the Client : MS Word AddIn:
    C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\jlib
    regards
    Jorge

  • Displaying specified colors on the pie chart rather than default colors

    Any ideas on how I can display my own colors on the pie charts rather than displaying default colors?

    Hi,
    You can specify your own colours by changing the default CSS styles.
    Go to the Chart Attributes for the pie chart, and in the CSS section select Yes in the "Use Custom CSS" option. You can now edit the CSS for the chart.
    At the bottom of the "Custom CSS, inline" setting, you need to add in two lines for each possible segment of the chart. Something like:
    rect.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    path.data1{stroke:#FFFFFF;stroke-width:0.5;fill:green;}
    rect.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    path.data2{stroke:#FFFFFF;stroke-width:0.5;fill:yellow;}
    rect.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    path.data3{stroke:#FFFFFF;stroke-width:0.5;fill:red;}
    This will set the colours of the first three segments to green, yellow and red respectively. Add in more rect.datan and path.datan entries until you have accounted for the maximum number of segments that your chart may contain.
    Regards
    Andy

  • Pie chart slice color

    Hi otn ,
    using JDev 11g 11.1
    i have status table
    SELECT DocStatus.ID,
    DocStatus.DESCRIPTION
    from DocStatus
    and 6 status inside (inprogress , not finish yet , finished , last date ,finished after due date , x)
    and i have a view object to represnt a table to dispaly docs report
    also a view object to dispaly pie chart
    SELECT
    COUNT(DOC_TRANSACTION.TRANSACTION_STATUS) TRANSACTION_STATUS,
    DOC_STATUS.DESCRIPTION DESCRIPTION
    FROM
    DOC_TRANSACTION,
    DOC_STATUS
    WHERE
    DOC_TRANSACTION.TRANSACTION_STATUS = DOC_STATUS.ID
    the requirment is to display pie chart with this color for status (not regular) ( inprogress --> yellow , not finished yet --> red,finished-->green,last date-->white,finished after due date-->blue,x-->brown)
    any one can help ?
    Edited by: nour3eny on 21/11/2009 02:00 م

    the following article shows the integration of jfreechart with oracle adf/jsf in a very simple and elaborate manner. I found this one very useful.
    http://oracle-latest-technology.blogspot.com/2010/02/creating-chart-in-oracle-adf-using.html

  • 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 show negative value in Pie Chart from Webi?

    I have below example data, I want to convert this to a pie chart in Web Intelligence, my problem is after I convert it to a pie chart, the revenue '-30' is shown as '30', looks like the pie chart is not suppor the negative value to show, I want to know if there is any workaround or solution to make the pie chart to show the negative value? Is this behavior is by design? do we have any official document to explain this?
    The product I used is BOE XI 3.1 SP3.
    Department    Revenue
    A                      100
    B                       -30
    C                        80
    Edited by: Alex Wang on Jul 13, 2010 5:51 PM

    Why are you showing this information as a pie chart? It doesn't make sense to try and display a negative slice in a pie chart. I can't really think of a logical way to try and draw a negative slice in a pie chart. With a pie chart you will need all your information to either all be positive or all negative, otherwise it doesn't work.
    What you need is to have a bar chart, with positive and negative values on the y axis.

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

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

  • How to present percent and value in pie chart?

    Hi guys,
    I tried to present both percent and value in a pie chart in web intelligence. I've looked over data value setting but still no luck. Can we request this feature to be available in the next SAP BO platform upgrade.
    Thanks.

    Hi,
    You can try this .
    1)
    Add 2 Pie charts in your Report (Align top
    & Left Same Size ) .
    Set Background Color Transparency 0%
    Set Data Value Presentation value for 1 st (Outside)
    Percent for 2nd (Inside)
    Make size of the pie as per the value presentation  .

  • AMX Pie Chart Slice Label

    I'm trying to customize the slice labels in my pie chart. It looks like the textType attribute of the dvtm:sliceLabel tag might provide me what I need, but there is little information. Where does the component get the "text" to display? The percentage is based on the pieDataItem's value attribute in relation to the whole as expected. I have the label and sliceId attributes also set for the pieDataItem component in the dataStamp facet but these are not showing up in the slice label as the text. Is there another component I need to add to the dataStamp facet that will be consumed by the sliceLabel text?

    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>

  • Round Pie Chart Slice Labels

    I need to round the slice labels of my pie chart to 0 decimal places. I have looked and looked around on how to do this, and the only solution I have found does not work (using the ViewFormat element under the SliceLabel element). Here is the code for my chart. Typically, the labels end up with 2 decimal places, but some seem to randomly be rounded to 3 instead. What am I doing wrong? Any help would be greatly appreciated.
    chart:
    <Graph graphType="PIE">
    <SliceLabel textType="LD_PERCENT"/>
    <Title text="Total Compensation Package" visible="true" horizontalAlignment="CENTER">
    <GraphFont font = "Arial" size="12"/>
    </Title>
    <LegendArea position="LAP_BOTTOM"/>
    <SliceLabel visible="true">
    <ViewFormat decimalDigit="0" decimalSeparator="." decimalDigitUsed="true" decimalSeparatorUsed="true"/>
    </SliceLabel>
    <LocalGridData rowCount="2" colCount="2">
    <RowLabels>
    <Label>Annual Wages</Label>
    <Label>Benefits</Label>
    </RowLabels>
    <DataValues>
    <RowData>
    <Cell>
    <xsl:value-of select=".//CK_BENSTMT_ANNUAL"/>
    </Cell>
    </RowData>
    <RowData>
    <Cell>
    <xsl:value-of select=".//CK_BENSTMT_TOT5_ER"/>
    </Cell>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>

    That is exactly what I am using though, and it still doesn't work. Do I have to place the slice label element somewhere specific within the code for it to work correctly? I will try moving it around, but any other advice would be greatly appreciated.

  • Retriving value from Pie chart to hidden field using onmouseover event

    Hi,
    I am Vaibhav. I have create Pie chart on EMP table. Pie chart query is as follows,
    SELECT 'javascript:onmouseover=$x(''P25_DEPTNO'').value='||deptno||';popupURL(''http://www.google.com'');' LINK,
    deptno, COUNT (empno)
    FROM emp
    GROUP BY deptno
    On mouseover on Pie chart i want to get value of deptno column but from above query i am not getting the value of deptno. So how should I get value of deptno on mouseover event on Pie chart.
    Thanks in advance,
    Regards,
    Vaibhav
    Edited by: user10600404 on Feb 28, 2011 10:39 PM

    Hi,
    I can get it to work with:
    SELECT 'javascript:onclick=$x("P24_DEPTNO").value='||deptno||';popupURL("http://www.google.com");' LINK,
    deptno, COUNT (empno)
    FROM emp
    GROUP BY deptno That is - using onclick instead of onmouseover.
    See: http://apex.oracle.com/pls/otn/f?p=9568:24 - the Select list is updated as you click on a slice in the pie chart
    Andy

  • 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

  • Mouse Over Value in Pie Chart

    I have two questions -
    1. How do i restrict the no. of decimals in the Mouse Over values for Percentage in a Pie Chart ? The numeric values i can control but the percentage (which the system calculates) seems to be set at default two decimal places.
    2. While displaying the labels even though i am using the ouside end, inside end etc options - i can't seem to control the overlapping of a few labels. Offsetting is something that i need to do by hit and trial. too slow. and not all need to be offsetted. Can i selectively offset for a data point ?
    Please help....Cheers...

    Hi:
       For question1, do you mean the "Data Label->Percentage" right? I think the "Mouse-Over Values" could be set decimal places easily from  "Appearance->Text->Mouse-Over Values", but for "Data Label->Percentage" there is no direct way to show its decimal places. You can use "Label" component to build your percentage you like manually.
      For question2, if all position setting could not fit your need, you can also use label component to build your custom Data Labels.

Maybe you are looking for