How to color the bars(sub-category) of a group(X-axis) in a Bar Graph?

Hi,
I have 3 columns in a graph(10g) - CLLI,SVRTY,TOTAL
CLLI -Varchar2
SVRTY -Varchar2
Total -Number
X-axis
Groups: CLLI
Bars : SVRTY
Y-axis : Total
Now each CLLI can have 3 values of SVRTY like CR, MJ, MN
Question) How can I change the color of each bar(SVRTY) in a group(CLLI) to indicate a particular condition?.
Example:
if SVRTY = CR, then bar color is RED
if SVRTY = MJ, then bar color is ORANGE
if SVRTY = MN, then bar color is YELLOW
X-Axis is CLLI and each CLLI can have 3 sub-groups(SVRTY) values like CR,MJ,MN
Thanks

Hi,
I was able to solve this issue using colorMode="COLOR_BY_SERIES".
I have another issue however.
If SVRTY of a group(CLLI) is say CR,MJ,MN then I get all the 3 bars in different colors for a single CLLI.
i,e :It uses the following series:
<Series id="0" color="#NNNN"> ---> This may be mapped to CR(RED)
<Series id="1" color="#MMM"> ---> This may be mapped to MJ(ORANGE)
<Series id="2" color="#TTTT"> ---> This may be mapped to MN(YELLOW)
However if SVRTY of a group(CLLI) is say only "MN" then I get the color of the bar as defined in Series id="0", which may be RED. I need it to be YELLOW.
Question) Is there anyway to control the color of a bar in a group to match a particular condition/value?.
Example: if SVRTY value is MN, then it should always be YELLOW. Right now it's talking the 1st color defined in <Series id="0" color=#NNNN">
Thanks

Similar Messages

  • 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 to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

  • How to get the Vendor Sub Range details

    Hi
    Can you please let me know, how to get the vendor sub range from SAP tables?
    Thanks
    RK

    Hi,
    For Vendor Sub-Range table, please refer to Table WYT1.
    Regards,
    Nazrin

  • How to color the background of a text line in mail

    How to color the background of a text line in mail
    The forum has a message dated 2005 that this cannot be done, has the recent OS made this a feature.
    I still caanot seem to see any where it is available.
    Thanks
    Greg

    greg1424 wrote:
    Does pages do that?
    Yes.
    I also have Office for MAC but rarely use it as it is too cumbersome for me.
    Microsoft Office does it also.  So does Libre Office, Open Office and just about any full function word processor app.
    Dan

  • How to reverse the Reconcile Sub Contract Challan.

    Dear Expert,
    How to reverse the Reconcile sub Contract Chaaln. Our user has been made wrong GR and reconcile the Challan Number aganist same GR Number.After check the Report J1IFR then shown wrong entry.
    Please revert to me as soon as possible.

    Tried this step.
    The mat doc no has been removed from the list (as seen in J1IFR) But the qty is still the same. Even qty has to be reducedto reconcile the correct mat doc
    pl help

  • How to color the mandatory fields in a Adobe WebDynpro Java form

    Hi Experts,
    How to color the mandatory fields in a Adobe WebDynpro Java form?
    This will avoid any confusion to he end user while filling the form as he would try to type something in field which is set as Read nlybut stil the cursor appears there.
    Regards,
    Shobhit

    Hi Shobhit,
    you can write something like xfa.host.setFocus(<text field name>). to set the focus or
    <text field name>.fillColor = "120,120,123";
    <text field name>.resolveNode"ui.#textEdit").border.edge.fill.color.value="120,150.200";
    to fill the color.
    Refer to adobe dev centger scripting samples to learn more on these.
    Hope these helps.
    Thanks and Regards,
    - anto.

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

  • FICACMP_ACC -- How the bar graph is coming

    Experts,
    I need ur help in changing the bar graph criteria in this component.
    I am not even able to find out from where this graph is getting displayed where the code is ?
    Guyz please help me. I am stuck here. I need your support.
    I want to hide the Pie chart from the dropdown and have to change the criteria of displaying the bar chart.
    THnaks
    ANit

    Problem is resolved:
    I got the logic on how BAR graphs are getting created in this component...the code is written in a standard class CL_THTMLB)CELLERATOR.
    THanks
    Anit

  • Plz can anybody tell me how to color the whole UIButton

    Plz can anybody tell me how to color the whole UIButton

    You can set image on your button (just change an image with the color which you want)
    [button setBackgroundImage:newImage forState:UIControlStateNormal];      
    [button setBackgroundImage:oldImage forState:UIControlStateHighlighted];

  • How do I plot bar graph using MStudio.NE​T for VB

    I can not find the FillToBase property in waveformplot object using MStudio 7.0 for VB.NET. How can I plot the bar graph like that in Mstudio 6.0.

    The Measurement Studio .NET WaveformPlot does not currently have an equivalent for CWPlot's FillToBase property. In the meantime, though, you can use the WaveformPlot's custom drawing services to emulate this functionality. For example, if you dropped a new WaveformGraph on a form, you could copy and paste the following code to draw bar graphs on the WaveformPlot:
    Private Sub OnBeforeDrawPlot(ByVal sender As Object, ByVal e As BeforeDrawXYPlotEventArgs) Handles WaveformPlot1.BeforeDraw
    DrawBarGraph(e, 0, Color.BurlyWood, Color.Firebrick)
    End Sub
    Shared Sub DrawBarGraph(ByVal e As BeforeDrawXYPlotEventArgs, ByVal baseYValue As Double, ByVal outlineColor As Color, ByVal fillColor As Color)
    Dim plot As XYPlot = e.Plot
    Dim g As Graphics = e.Graphics
    If plot.HistoryCount > 0 Then
    ' Clip the data to just what will be drawn with the current axis ranges.
    Dim xData() As Double, yData() As Double
    plot.ClipData(xData, yData)
    ' Calculate the screen coordinates of a base y value and the clipped data.
    Dim baseY As Double = CType(plot.MapPoint(e.Bounds, 0, baseYValue).Y, Double)
    Dim points As PointF() = plot.MapData(e.Bounds, xData, yData, False)
    Dim outlinePen As Pen = Nothing
    Dim fillBrush As Brush = Nothing
    Try
    outlinePen = New Pen(outlineColor)
    fillBrush = New SolidBrush(fillColor)
    ' Iterate through the mapped points and calculate the bar, fill it, and outline it
    For i As Integer = 0 To points.Length - 2
    Dim currentPoint As PointF = points(i)
    Dim nextPoint As PointF = points(i + 1)
    Dim barX As Single = currentPoint.X
    Dim barY As Single = currentPoint.Y
    Dim barWidth As Single = nextPoint.X - currentPoint.X
    Dim barHeight As Single = baseY - currentPoint.Y
    g.FillRectangle(fillBrush, barX, barY, barWidth, barHeight)
    g.DrawRectangle(outlinePen, barX, barY, barWidth, barHeight)
    Next
    Finally
    If Not outlinePen Is Nothing Then
    outlinePen.Dispose()
    outlinePen = Nothing
    End If
    If Not fillBrush Is Nothing Then
    fillBrush.Dispose()
    fillBrush = Nothing
    End If
    End Try
    ' Cancel any further drawing since we completely handled the drawing of the plot.
    e.Cancel = True
    End If
    End Sub
    Hope this helps.
    - Elton

  • Remove decimals from the Bar Graph..

    Hii,
    How to remove the Decimals from the Bar Graph.
    I am using Reports 9i.
    I have created a Bar Graph in that It is showing the decimals bar. Actully in the query i hv used the inbuild function Round but while i run the report it is showing the decimals.
    It is showing if the value is under 10 then 3 decimals. Value is between 10 to 100 then 2 decimals. 100 to 1000 is 1 decimal.
    How can i remove the same.
    Also in the X axis how can I put the description of a field. While i take the description fiel it is showing some exception error.
    Description field width is 50 Now I am showing the code field only have 3 digits.
    Please check this also...
    remove decimal places
    Thanks in Advance
    Jithesh

    Hi Simran
    1. You can get proper variable without decimal point.
    2. Use function "FLOOR" and get the output value assigned to variable defined in step 1.
    data : wv_wh_no type p decimals 0 .   -
    you take as per your requirement
    Let say,
    wv_dec_no = 1.0001.
    w_no = FLOOR(wv_dec_no).
    Hope it will help you.
    Regards,
    Anil Salekar

  • Today (6/1) the "My Usage" shows .7GB used (about 1/4 of my 3GB shaded in the bar-graph), and the solid-green in the bar graph representing only 1 day in the billing cycle.

    Today (6/1) the "My Usage" shows .7GB used (about 1/4 of my 3GB shaded in the bar-graph), and the solid-green in the bar graph representing only 1 day in the billing cycle. I'm trying to make sense of it.  My may statement shows 1.7GB - I think that's the period just ended.... and I can't imagine I've used 1/4 of my data already today before noon?  I'm guessing the 'My Usage" screens are not quite coordinated with the billing cycle - anyone else have ideas?

    ... guess the reply via email method doesn't quite work - I'll re-post here via website
    jejm1975
    Thanks for your message, but I don't believe it applies to the situation I described.
    What is described in my post is information from the Verizon website - My Verizon / View Usage. 
    It is not from my phone (which is not a Galaxy,btw)

  • How to get the last sub folder value from the string in Webi report

    I have an object coming from universe, this object will contain string e.g. \\Users\Public\Pictures\Sample\
    or    \\Users\Doc\BI\BO\Webi\
    I need the last sub folder from this path to be displayed i.e. Sample and Webi.
    I would like to know how it can be done.
    I tried using formulas like POS, SubStr and Length. however the issue is that the length of the the sting is not fixed and the number of "\" are also not fixed.
    I would appreciate any help regarding this.
    Regards,
    Yogesh

    Hi,
    What is the formula you have written though?.
    =length(right([folderpath]);pos([folderpath];"\")+1)
    Thanks,
    Jothi

  • How to remove the bar above the email body in inbox

    How do I remove the Information / toolbar? (not sure what it is called) that appears above the email body under the list of incoming emails in the inbox. It is the bar the has info about the email and buttons like reply, delete, etc. It is redundant and just takes up space.

    You cannot remove it. It is part of the message pane and will display when the message pane turned on.
    You can make it smaller with this add on.
    https://addons.mozilla.org/en-US/thunderbird/addon/compactheader/?src=hp-dl-featured

Maybe you are looking for