Change graph color dynamically in Discoverer

Hi,
Is it possible to change the background color for a graph based on certain condition? If so, how should I do it?
Thanks,

No - you cannot dynamically change the color of a graph or graph element in Discoverer.
Thanks
Abhinav
Oracle Business Intelligence Product Management
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
Discoverer: http://www.oracle.com/technology/products/discoverer/
BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
BI Samples: http://www.oracle.com/technology/products/bi/samples/
Blog: http://oraclebi.blogspot.com/

Similar Messages

  • Change Text Color Dynamically Depending on Which MP3 File is Playing

    Change Text Color Dynamically Depending on Which MP3 File is
    Playing
    Hi,
    Can anyone help with this problem.
    I am trying to change a text cast member's color dynamically
    based on which audio file is currently playing.
    I have 4 Text Cast member buttons named
    Play Song 1
    Play Song 2
    Play Song 3
    Play Song 4
    I am successfully playing the 4 songs in a queue like this
    (ie. If "Play Song 1" sprite text member is pressed then...
    sound(1).queue(member "Song1")
    sound(1).queue(member "Song2")
    sound(1).queue(member "Song3")
    sound(1).queue(member "Song4")
    sound(1).play
    What I would like to do is to have the currently playing song
    text color changed to a different value, say Green.
    So if "Song2" in the queue starts to play then the text "Play
    Song 2" would become Green. When done it would then turn back to
    black then "Song3" starts to play and "Play Song 3" text script
    button would then turn from black to Green an so on.
    These are the codes I've tried in the frame script and none
    seem to work...
    on enterFrame me
    if sound(1).status = 3 then member("Play Song 1").foreColor=5
    (This works but only for the first song because "Play Song 1"
    is directly named and clicked on.)
    else member("Play Song 1").foreColor=255
    end if
    I have tried to make a reference to the playing song and so
    far each of these doesn't work...
    --if sound(1).status = 3 then
    sprite(me.sound.member).foreColor=5
    --if sound(1).status = 3 then
    sprite(me.spriteNum).member.color=rgb(0,255,0)
    --if sound(1).status = 3 then member
    (sound(1).member).foreColor=5
    --text = member(whichMember).scriptText
    end
    Is there any way to reference the song name text cast
    member??
    I thought I had it when I discovered sound(1).member but
    sound(1).showProps returns the playing sound.member as
    member: (member 28 of castLib 1) nothing there I can use?
    It doesn't show the member name and
    It doesn't show the song name "Song1" which I could then
    match up to the "Play Song 1" text
    I'm pretty new to lingo so specific code examples would be
    appreciated.
    Can anyone help??? Thanks!!!

    did you get anywhere with this?
    When applying a styleClass to a af:showDetailItem, it doesnt seem to have any effect whatsoever.

  • Changing graph colors

    Hello,
    I have a bar graph and i want to change the bar color in the graph based on a value or dynamically. Meaning, if i have a variable that has a value "R" then the bar color should be Red. Is this possible in BOXIr2 Deski and if so how do you do it?. Any help is much appreciated
    Thanks,

    Hello Anand,
    I don't think you can (at least I can't in BO6.5, but I don't think there has been much development done on deski since 6.5).
    Normally in a table or crosstab you would define an alerter showing rows/columns differently based on the value of a measure.
    If you want to achieve that in a graph you need to proceed differently (the alerter is not active when you are working with a graph).
    Based on the measure (eg <sales>) you want to check you create a check_variable:
    = If <sales> < 10000000 Then "R" Else "G"
    Then create 2 new variables:
    <sales red>
    =<sales> Where (<CheckVariable>="R")
    <sales green>
    =<sales> Where (<CheckVariable>="G")
    Now create a graph and put both new created variable in there. You can now control the color of each variable seperately.
    Hope this helps you further.
    Cheers,
    Harry

  • TextBlock, TextElement changing color dynamically

    So I decided try out the TextBlock and TextElement in my project, but I can't seem to change the color dynamically.  Here is the code:
    //show the name of the node in a textSprite label
            private function addNameLabel():void
                trace('addNamelabel called');
                textSpriteHolder = new Sprite;
                var scAmt:Number = Math.round(11 * _scaleFactor);
                var temp:String = _nodedata.name;
                var whitespace:RegExp = /(\-)/g;
                temp = temp.replace( whitespace, '_' ); 
                txt = truncateTextField( temp as String );
                var fd:FontDescription = new FontDescription();
                fd.fontLookup = FontLookup.EMBEDDED_CFF;
                fd.fontName = "Arial, Helvetica, _sans";
                var ef:ElementFormat = new ElementFormat(fd);
                ef.fontSize = 22;
                ef.color = 0x000000;
                te = new TextElement(txt, ef);
                tb = new TextBlock();
                tb.content = te;
                textsprite = tb.createTextLine(null, 300);
                var baremin:Number = Math.max( graphNode.width, 73 );
                textsprite.x    = ( baremin / 2) + 10;
                textsprite.y    = -5;
                textsprite.name = "label";
                textsprite.mouseEnabled = false;
                textsprite.mouseChildren = false;
                textsprite.alpha = 1;
                textSpriteHolder.addChild(textsprite);
                graphNode.addChild(textSpriteHolder);
    Anyone know how to change the color of the text, later on say when a threshold is met (aka not during instantiation).

    Actually, i have the setOpaque Command already. The problem is that the code to render other cells does not get executed when i click the jcheckbox. It will only happen if i resize the table, or move the mouse over those columns etc. So i want a definite way to invoke all the cell renderers when i click on the boolean column.
    PK

  • Updating a JTabbedPane's selected tab color dynamically

    Hi
    I have set the selected tab color for my JTabbedPane
    using:
    UIManager.put("TabbedPane.selected", Color.RED);Now I would like to change the color dynamically to green.
    However, just calling:
    UIManager.put("TabbedPane.selected", Color.GREEN);doesn't work.
    It seems that if the JTabbedPane is visible while I change the color through the UIManager, it has no effect.
    On the other hand, all the other JTabbedPanes in my application (which are not visible - in hidden dialogs), are effected.
    How can I effect ALL the JTabbedPanes in my application at the same time?

    Try to call
    SwingUtilities.updateComponentTreeUI(selectedPane);
    best regards
    Stas

  • Help Needed : Changing the Color of Bar Graph Dynamically

    Hi..
    Is der any body to help me out...?
    My Question is :- How to change the color of Bar graph Dynamically..
    For example (Assume when one of the Bar Graph crosses certain limit of Y axis value mentioned, the graph must be changed into RED color)
    Thanks in Advance
    Edited by: user12873839 on Mar 30, 2010 10:03 PM

    Manoj,
    You have to create the entire chart manually. follow the below steps. You can refer to the anychart website for more help on different tags and features.
    1. Enter the following code in the html header of the page
    <script src="#WORKSPACE_IMAGES#AnyChart.js"  type="text/javascript" > </script>2. Create an ON Demand Application process by going to the Home>Application Builder>Application #>Shared Components>Application Processes
    3. Click On Create
    4. Enter the name as DYNAMIC_BAR_GRAPH_CHART
    5. Select the processing point as On Demand
    6. Click on Nxt
    7. Enter the following code in the processing text
    DECLARE
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    OWA_UTIL.http_header_close;
    HTP.p ('<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>');
    HTP.p ('<anychart>');
         HTP.p ('<settings>');
              HTP.p ('<animation enabled="True"/>');
         HTP.p ('</settings>');
      HTP.p ('<charts>');
       HTP.p ('<chart plot_type="CategorizedVertical">');
         HTP.p ('<data_plot_settings default_series_type="Bar">');
              HTP.p ('<bar_series>');
                        HTP.p ('<tooltip_settings enabled="True">');
                        HTP.p ('<position valign="Top" halign="Right"/>');
                        HTP.p ('<format> Name: {%Name}');
                        HTP.p ( 'Value : ${%YValue}{numDecimals:0}');
                        HTP.p ('</format>');
                        HTP.p ('<font bold="false"/>'); 
                        HTP.p ('<background>');
                        HTP.p ('<corners type="Rounded" all="3"/>');
                        HTP.p ('<border type="Solid" color="DarkColor(%Color)" thickness="2"/>');
                        HTP.p ('</background>');
                   HTP.p ('</tooltip_settings>');
              HTP.p ('</bar_series>');
         HTP.p ('</data_plot_settings>');
         HTP.p ('<data>');
              HTP.p ('<series name="series 1">');
               FOR cThis IN (select table2.name, table2.value
                                  from table1,table2,table3
                                  where table1.T1ID = table3.T3ID
                                  and table2.T3ID = table3.T3ID
                                  and table3.C_ID=1
                                  and table3.A_ID=1
                        ORDER BY table2.name )
              LOOP
                   IF cThis.value > 90 THEN
                        HTP.p ('<point name="' || cThis.name || '" y="'|| cThis.value || '" color="red"/>');
                    ELSE
                        HTP.p ('<point name="' || cThis.name || '" y="'|| cThis.value || '" />');
                   END IF;
              END LOOP;
              HTP.p ('</series>');
         HTP.p ('</data>');
         HTP.p ('<chart_settings>');
              HTP.p ('<title>');
                   HTP.p ('<text>Chart Title</text>');
              HTP.p ('</title>');
              HTP.p ('<axes>');
                   HTP.p ('<y_axis>');
                        HTP.p ('<title>');
                             HTP.p ('<text>Value</text> ');
                        HTP.p ('</title>');
                        HTP.p ('<labels>');
                             HTP.p ('<format>${%Value}{numDecimals:0}</format>');
                        HTP.p ('</labels>');
                   HTP.p ('<axis_markers>');
                   HTP.p ('</axis_markers>');
                   HTP.p ('</y_axis>');
                   HTP.p ('<x_axis position="Normal" align="inside">');
                   HTP.p ('<labels display_mode="Rotated" rotation="90" align="inside" />');
                   HTP.p ('<title>');
                        HTP.p ('<text>Name</text> ');
                   HTP.p ('</title>');
                   HTP.p ('</x_axis>');
              HTP.p (' </axes>');
         HTP.p ('</chart_settings>');
        HTP.p ('</chart>');
      HTP.p ('</charts>');
    HTP.p ('</anychart>');
    htmldb_application.g_unrecoverable_error := true;
    END;8. Click on Create Process
    Now we will create a html region to display the graph.
    9. Create a new region of type HTML on the same page and select the region template as no template.
    10. Enter the following code in the region source
    &lt;div id="DynamicaBarGraph"></div>
    &lt;script type="text/javascript" language="javascript">
    function DynamicaBarGraph()
    var DynamicaBarGraph = new AnyChart('/i/flashchart/swf/AnyChart.swf');
    //    DynamicaBarGraph.width = "400";
    //    DynamicaBarGraph.height = "400";
    DynamicaBarGraph.addEventListener('pointClick', onDynamicaBarGraphClick);
        var DynamicaBarGraphData = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=DYNAMIC_BAR_GRAPH_CHART',0);
        gReturn = DynamicaBarGraphData.get();
        DynamicaBarGraph.setData(gReturn);
        DynamicaBarGraph.write("DynamicaBarGraph");
    function onDynamicaBarGraphClick(e)
    // Read point name
         name=e.data.Name;
    // Read point value
         value=e.data.YValue;
    // You can add onclick even here using the values name and value
    DynamicaBarGraph();
    </script> Hope it helps. Thanks.
    Regards,
    Manish

  • How can I change the color of plot in a waveform chart and graph?

    There are 4 plots in a waveform chart, from plot0 to plot3, and I want to chang the color of plots dynamicly up to my needs when the VI is running.
    For example, as show in the picture, i want to set the plot0 as RED, and plot1 is BLUE, plot2 is YELLOW, plot3 is GRAY.
    If there is only one plot, i can change it's color, however when there are more than one plot, it fail.
    How can I do it?
    Thanks
    Attachments:
    waveform.JPG ‏61 KB

    Hello MilkyStone,
    first you have to set the active plot, then change its color (or other properties). All that is done using property nodes.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • Cannot change internal graph color in Conky

    Hey everyone,
    I have run into a problem when configuring my Conky widget for my fresh Arch install.  I installed Conky and am using a modified configuration that I found here on the forums.  The contents of my conky.conf file are found below:
    background yes
    use_xft yes
    xftfont Sans:size=8
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 500 250
    maximum_width 200
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment top_right
    gap_x 12
    gap_y 35
    no_buffers yes
    uppercase no
    cpu_avg_samples 4
    override_utf8_locale no
    text_buffer_size 1024
    TEXT
    ${font sans-serif:bold:size=9:}${color CFCFCF}SYSTEM ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}$sysname $kernel $alignr$machine
    Host: $alignr$nodename
    Uptime: $alignr$uptime
    File System: $alignr${fs_type}
    ${font sans-serif:bold:size=9}${color CFCFCF}PROCESSORS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}CPU (Avg): $alignr ${cpu cpu0}%
    ${cpugraph cpu0 40,200 237BEE -l}
    Core 1: ${cpu cpu1}% ${cpubar cpu1}
    Core 2: ${cpu cpu2}% ${cpubar cpu2}
    Core 3: ${cpu cpu3}% ${cpubar cpu3}
    Core 4: ${cpu cpu4}% ${cpubar cpu4}
    ${font sans-serif:bold:size=9}${color CFCFCF}MEMORY ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}RAM $alignc $mem / $memmax $alignr $memperc%
    $membar
    ${font sans-serif:bold:size=9}${color CFCFCF}DISKS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Root $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
    ${fs_bar /}
    Home $alignc ${fs_used /home/johnmichael} / ${fs_size /home/johnmichael} $alignr ${fs_used_perc /home/johnmichael}%
    ${fs_bar /home/johnmichael}
    ${font sans-serif:bold:size=9}${color CFCFCF}TOP PROCESSES ${color 818181}${hr 2}
    ${font sans-serif:bold:size=8}${color A8A8A8}${top_mem name 1}${alignr}${top mem 1} %
    ${top_mem name 2}${alignr}${top mem 2} %
    ${font sans-serif:normal:size=8}${color 818181}$font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %
    ${font sans-serif:bold:size=9}${color CFCFCF}NETWORK ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}IP address: $alignr ${addr wlan0}
    ESSID: $alignr ${wireless_essid wlan0}
    Connection Quality: $alignr ${wireless_link_qual_perc wlan0}%
    $alignr${font sans-serif:normal:size=8}Download
    ${font sans-serif:normal:size=8}${downspeedgraph wlan0}
    ${downspeed wlan0}/s $alignr ${totaldown wlan0}
    $alignr${font sans-serif:normal:size=8}Upload
    ${font sans-serif:normal:size=8}${upspeedgraph wlan0}
    ${upspeed wlan0}/s $alignr ${totalup wlan0}
    ${font sans-serif:bold:size=9}${color CFCFCF}EMAIL ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Gmail Messages: $alignr ${execpi 300 python ~/.scripts/gmail.py}
    GA Tech Messages: $alignr ${execpi 300 ~/.scripts/imap.pl}
    The problem that I am having is in trying to specify the internal color of the cpu graph for the average cpu activity:
    ${cpugraph cpu0 40,200 237BEE -l}
    I want to keep the boarder of the graph the same darkish grey color as the rest of the widget but I want to change the color of the portion of the graph inside the boarder to a blue color, e.g. the hex color in the code above, or more specifically to match the blue that I am using in my Archey and prompt in urxvt.
    I looked up the Conky variable defintions for how to do this and apparently you specifiy gradientcolor1 and gradientcolor2 after the size definition, similar to how I have done it in my conifg (I know that I am only using one color in the above code but it is still not working even when I define two different colors).
    Here is a picture of my desktop:
    http://ompldr.org/vZzR6dw
    As you can see the internal portion of the graph is the same grey color as the majority of the widget.  I searched extensively on the forums and Google for a solution but everything that I try doesn't work. 
    Any suggestions?

    I hope this is 'fixed' by Apple in a mail.app update.
    Let them know what you want via the feedback channel:
    http://www.apple.com/feedback/macosx.html
    But Mail has never had a provision for setting the default font, size, or color in its preferences and there is no indication this will ever be changed.
    A related thread:
    http://discussions.apple.com/thread.jspa?threadID=1467587&start=0&tstart=0

  • Dynamically changing the color of nodes in a JTree

    I have created a JTree and want to dynamically change the color of some of the TreeNodes as my program runs. The JTree is displayed in a JPanel. There is an algorithm built into which identifies the nodes whose color I need to change. No user actions is performed (everythign is internal to the program).
    It seems that in the TreeCellRender only kicks in when the tree is first displayed. How do I get it to re-render the tree when the TreeModel changes? It seems that the Listeners are only looking for external user interactions.
    Any help would be greatly appreciated.
    Thanks!

    I think I was a bit too vague in my question. Let me try again...
    I have changed an attribute in a node in a JTree. This attribute is changed after the tree was initially rendered, but while the program is still running. I want to tell the TreeCellRenderer to look again at this node since that attribute that was changed will effect how the node should be renderered. I tried using the nodeChanged() method, but it did not work (the colot of the node did not change). Any advise how I can do this?
    Thanks!

  • BI BEANS - Graph - How to change the color .. please help

    Hi Everyone,
    Can anyone please tell me how to change the color of the Graph bars or slices. I mean the color which represents the data.
    For example in a pie chart I want to set specific color for specific slice. Please help.
    Regards
    SRT

    It seems to be the SET_SERIE_COLOR() method added to the FormsGraph revised version, but this latest version is momentarily not available for download.
    I think there is an existant open thread on this. Maybe you could find it using the Forum Search box.
    Francois

  • How change the report graph color in teststand

    how change the report graph color in teststand?

    Michael,
    You might also be able to customize the style sheet associated with the report. The TestStand Help provides some information about how to customize ATML or XML style sheets to change report colors based on the status of test steps.
    Please take a look at the following topics; are these helpful?
    ATML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in ATML Test Results 5.0 Reports
    XML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in XML Reports
    Tom
    TestStand Documentation

  • Change the bar graph color

    Hi
    Is it possible to change the bar graph color? I want the first bar to be green, second to be red, thrird to be orange and fourth to be gray.
    Is there anywhere to specify the color?
    Thanks

    Did you find the Fusion 11g Web Guide section 23.5.1 any help?:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/dv_graph.htm#sthref410
    CM.

  • Dynamically changing row color in an ADF table?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Can anyone please let me know the code for dynamically changing the row color of an ADF table?
    Thanks,
    Vik

    well you can use EL on af:column inlineStyle property to change the color on condition
    e.g
    inlineStyle='#{(row.SelectedRow)?"background-color: Silver":""};a example can be found here it is changing color based on Checkbox selection http://baigsorcl.blogspot.com/2010/06/deleting-multi-selected-rows-from-adf.html

  • Changing graph type, color change

    Why when I change the type of graph it changes the colors automatically. I had blue, green, red (in the 3d fills) for a bar graph respectively representing 2009,2010,2011. I am adding this year I wanted to switch to a line graph - why are the colors changing auto to add a yellow and making 2012 red? How can I stop this? I find it quite difficult to change the colors of all the lines/symbols using the 3D fills, actually it doesn't work very well @ all, so I would prefer not to have to do this for 10 graphs per client @ 5 clients. Is there a more efficient way to accomplish this?
    Also brings me to my next question. I was attempting to use the copy style, paste style function with the graphs - to ease the pain of all of this. When I do that it only pastes the axis scale (exactly what I don't want copied)! Is there a way to c&p the STYLE...the colors, weight, and data symbols of the lines. Therefore if I must do all the color change manually I would only have to do it once?
    Thanks so much.

    Here's an example, using a Line Graph.
    The first graph uses the full table, which has a column for each year, and extends to 2017, using 'placeholder data.'
    For the second, all of the data, and the header labels (year) was deleted from the table.
    Not good for presentation (nor was the table with all those empty cells), so columns E (2012) to J were selected and Hidden.
    When data became available for 2012 (ie. about 10 or 11 months from now), the hidden columns were Unhidden, the label and data were entered into column E (2012), and columns F - J were again Hidden.
    I haven't tried this with bar graphs yet. A closer look at the structure of your data and a screen shot of a sample bar graph would be useful in avoiding a 40 day trek through the wilderness.
    Regards,
    Barry

Maybe you are looking for