Color code a stacked bar chart?

Post Author: mmueller12
CA Forum: Charts and Graphs
Is there a way to color code a stacked bar chart?  We need to have one horizontal bar with the colors listed below.  In other words, we need to color code a date range to a specific color based on the "Color" column.  I have it to the point of different colors for each date range in a single stacked bar, but cannot figure out how to link to a specific color.
ID
StartDate
EndDate
Color
1
10/18/2007
11/15/2007
YELLOW
1
05/31/2007
10/18/2007
YELLOW
1
03/08/2007
05/31/2007
YELLOW
1
01/25/2007
03/08/2007
YELLOW
1
06/09/2006
01/25/2007
ORANGE
1
03/17/2006
06/09/2006
RED
Thanks in advance,Melissa Lord

Post Author: mmueller12
CA Forum: Charts and Graphs
Thanks for the replies - here are the answers to your follow-up questions:
Lugh - I am using Crystal v10, I don't find a "Color Highlight tab".
Ranjit - I found this tab, but the only "conditional format" must be based on the start date (x-axis) which is not the field that I need to use to change the color.  It appears that I can only use the x-axis values when conditionally formatting a bar, which is not what I need.  I need to use a field not actually used in the graph to conditionally format the colors.

Similar Messages

  • 3.1 Stacked bar chart shows no color by default - Override possible?

    I noticed in Studio 3.1, stacked bar charts show no color by default. I also read in the documentation that this is the default behavior:
    "The chart is initially displayed with no color dimension selected. End users can then select a color dimension. The chart is also reset to display without a color dimension whenever the chart configuration is changed."
    I noticed that the chart is also reset to display no color when the user logs off. This is rather annoying for users if they must select the color indicator on all charts every time they log on. Is there a way to override this default so that the chart displays color by default? That's how it worked in 3.0.

    Unfortunately, this can't be overridden for 3.1. We have heard similar feedback from others, and are looking into it for the future.

  • Stacked bar chart colors

    Post Author: mecca
    CA Forum: Charts and Graphs
    I hope someone knows the answer to this question. Can you change the color format of a stacked bar chart line individually (not the whole lines color), I need to hide the min field by using the color white, but when I set the format color to white based on the value of greater than 0, then whole stacked line turns white. I have tried both by series and by group.
    thnx in advance,
    Mecca

    Post Author: Dan3D
    CA Forum: Charts and Graphs
    Not sure I understand. Is it a Stacked BAR chart? a Stacked LINE chart? a combo bar/line stack chart?
    Take a look at www.threedgraphics.com and go to CRChart and see if any of our examples look close???
    -Dan @ 3D

  • Crystal Report Version 11.5.8.826 - Color Sorting - Stacked Bar Chart Issue

    Hi All,
    I have issue on sorting the color on stacked bar chart.
    Below steps are not reflect the color sorting.
    1. Right click on chart area in the report
    2. Select chart expert
    3. Go to Color Highlight tab
    4. In the item list, change the sequence of color
    Is there any way to sort the color on stacked bar chart?
    Please advise, thank you.
    Regards, Sumardi

    hi,
    You can right click on each bar individually,
    Format Series Riser -> Fill -> Foreground Color.
    This will apply the required colors.
    Also, if you have any color standards, try to create  a sample report with this kind of Chart and specify the colors individually.
    Right Click the chart -> Save as Template.
    In future, if any other reports have Stacked Bar Chart with same color standards, you can directly re-use this template.
    Regards,
    Vamsee

  • Stacked bar chart with single group

    Post Author: rt50896
    CA Forum: Charts and Graphs
    Dear all,   I have a question about stacked bar chart with one group value(normally more than one group value is ok)   ex. YYYYMM      PRODUCT    AMT        -
            200601          ABC            1000        200602          ABC              300        200603          ABC              500       .....   the data collection is as above,then chart display: x-axis as YYYYMM,y-axis as PRODUCT...   but why this case the bar chart color not the same for each YYYYMM? and legend not display one PRODUCT as ABC only?   the bar chart display like this:   http://tkfiles.storage.live.com/y1po30C7CH6eW9phoLAXH89MBGwFLYdEZ3kOMQXUQzDzwM-VNnffibEwqPI8TIUNBm1f7uKTjnkaOI   ps. crystal report version is 8.5Regina

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • CR XI Issue with Stacked Bar Chart

    I'm hoping this question is easy.
    I'm having trouble creating a stacked bar chart.
    I want to do a Bar Chart which will show one "Bar" for each Priority (Priority 1, 2, 3, 4 or 5) and then for each Priority divide out, by color, the Status (Submitted, Reviewing, Working, Testing....).
    For example, let's say that there are 10 Priority 1 records. Of those 10, 5 have a Status of Submitted, 3 are being Reviewed and 2 are being Tested. Then the Priority 1 bar should show a count of 10 which is comprised of 3 colors which will correspond to the 3 Statuses that make up the 10 Priority 1 records.
    I can't get the Stacked Bar Chart to display this correctly.
    In the Chart Expert, the Data Tab says:
      -- On change of: Priority - Ascending
      -- Show Value(s): Count of Status
    When I run the CR, it get's the Priority correct and I see the total for each Priority. But it does not then take each Bar and color code by Status.
    Any ideas how to get it to do that?
    Thanks,

    Hi,
    You should have in On change of field a sub group as well.
    For stacked bar charts it is necessary to have a group and a sub group fields in on change of section.
    Say you have the month.
    no of priority1 in jan etc.
    Hope that helps!!
    Thanks
    -Azhar
    Edited by: Azhar on Aug 4, 2009 8:23 AM

  • Repositioning datalabels on 3-D stacked-bar chart

    I am trying to reposition value datalabels on a 3-D 100%-stacked-bar chart.  I am using Excel 2010.
    I am preparing charts for the age distribution and the race/ethnic distribution of new students, among dozens of others.  (Printed, the workbook is over 100 pages, with more charts to be added!)
    Each series  (for example, "25 to 29" or "Asian")  has its distinct color.  My boss has stipulated 12pt bold type, but some points are so small that the datalabels are larger than the point.  As a result, he
    wants the datalabel filled with the category's color.  He also wants datalabels for points with 0 values displayed  (for instance, "Over 50" or "Not Reported")  inside the bar.
    On a 3-D bar chart, the middle of a datalabel is positioned at the vertical middle of the point and at the horizontal middle of the face of the point  (not the middle of the entire point, thus excluding the sidewall).
    The 0-valued points are usually at the top or bottom of the bar.  With several categories, inserting the "0" or small-value label at the extreme of the bar often overwrites one or more other labels.  My boss wants the second label moved
    below the first, etc.
    I have used the eyeball method to adjust the datalabels, but I frequently either overlap another label or allow the contrasting color of the point that the labels overlay to leak through the space between the two labels.
    I'm trying to tighten the charts' appearance.  I have written code, for instance, to horizontally align all datalabels for box-and-whisker charts with the label of the mean.  (The labels for the whiskers are not, by default, aligned with the
    labels for the box)
    The attached code  (in VBA, not VB.Net)
    Sub test()
    Dim bytPoint As Byte, bytSeries As Byte
    Dim strDataLabelName As String
        Dim objDataLabelNext As DataLabel, objPoint As Point
        Const cstrTitle As String = "Position DataLabel"
        If Not TypeName(Selection) = "DataLabel" Then MsgBox "Please select a single DataLabel", , cstrTitle: Exit Sub
        strDataLabelName = Selection.Name
        If Not Left$(strDataLabelName, 4) = "Text" Then MsgBox "DataLabel has an invalid name.  It must be ""Text SnPn"".  Please correct.", , cstrTitle: Exit Sub
        bytSeries = ftbSeries(strDataLabelName)
        bytPoint = ftbPoint(strDataLabelName)
        With ActiveChart
            If bytSeries = .SeriesCollection.Count Then
                Selection.Top = .Axes(xlValue).Top + 0.75
            Else
                Set objDataLabelNext = .SeriesCollection(bytSeries + 1).Points(bytPoint).DataLabel
                Selection.Top = objDataLabelNext.Top + objDataLabelNext.Height
            End If
            Set objPoint = .SeriesCollection(bytSeries).Points(bytPoint)
            Selection.Left = objPoint.Left + (objPoint.Width - Selection.Width) / 2
        End With
        Set objDataLabelNext = Nothing: Set objPoint = Nothing
    End Sub
    Function ftbPoint(strDataLabelName As String) As Byte
    ftbPoint = Val(Mid$(strDataLabelName, InStr(5, strDataLabelName, "P") + 1))
    End Function
    Function ftbSeries(strDataLabelName As String) As Byte
    ftbSeries = Val(Mid$(strDataLabelName, InStr(5, strDataLabelName, "S") + 1))
    End Function
    ...does successfully vertically align the selected datalabel with the label of the next-higher series point, or the bottom of the top axis, if the series is the last.  But the datalabel is horizontally aligned with the entire width of the point, not
    the face of the point. 
    My strategy is to add half of the excess of the width of the face of the point over the width of the label to the left edge of the point.  objPoint.width returns the 2-D width of the point, not the width of the 3-D face.  I've tried subtracting
    the point depth from the point width, but that fails on theoretical, much less practical, grounds.
    I'm sure a function or a formula exists to convert the three-space depth to two-space so I can subtract it from the point width, but my little pea-sized brain can't conjure it.  I've invested a day's work with no solution.
    Many thanks in advance for your help.

    Hi JFHart,
    >>The "face" of the point is the front of the object, as opposed to the shaded side.  I'm seeking a way to measure the front.  The .width property seems to include the side; it measures the entire area that is colored<<
    Yes, it is correct. The width property of Point include the side. Here the test I did for it:
    And as far as I know, Excel object model doesn't provide a way to get the width of front face. I suggest that you submit the feedback from link below if you want to Office support this feature.
    Submit Feedback - Microsoft Support
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Single stacked bar chart

    Hi Guys,
    I have the below mentioned data that I want to represent in a single stacked bar chart.
    Dept Name               No. of Managers
    A                                        5
    B                                        2  
    C                                        3                                            
    I want the chart to look like the one shown below.
    Legend:
    Yellow - Dept B (20%)
    Blue - Dept A (50%)
    Green - Dept C (30%)
    Could anyone please help me achieve this in Dashboards 4.1?

    The series display the segment based on the values you pass to the chart, I hope you are looking for the percentage to highlight here. This is not possible you can change the color of the series and you can maintain a text to define the color code as you described above.

  • Problem with Stacked Bar Chart

    I have a problem with a stacked bar chart in Numbers 09. My chart is a single series with 6 categories. All of the categories have different values. The first 5 categories display correctly. However, the last category does not display in the color its supposed to, but rather shows up as white/background instead of the grey color shown on the legend. However, the value label is displayed in the proper place.
    When I select other chart types (pie, regular bar, or regular column) the category shows up like it's supposed to.
    This is kind of annoying since I would rather use stacked bar instead of a pie chart. Is there an upper limit on the number of values it can display as a stacked bar chart? Is this just a bug? Thanks!

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Stacked Bar Chart with data from a Web Service

    Hi,
    I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
    With a Year in input, my webservice gives an Amount per Cities and Products
    Data retrieved look like this (Sheet1) :
    Paris          Tablets          45
    Paris          Laptops          12
    Paris          Cellulars          89
    New-York     Tablets          56
    New-York     Laptops          36
    New-York     Cellulars          1
    Londres          Tablets          150
    Londres          Laptops          3
    Londres          Cellulars          45
    Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
                   Tablets     Laptops     Cellulars
    Paris          45          12          89
    New-York     56          36          1
    Londres          150          3          45
    The chart is a Stacked Bar Chart plugged on the previous Pivot Table
    I create 3 series (one per Product), values (X) are set with Amount
    Category labels (Y) are set with Cities
    The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
    So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
    Thx a lot !
    Nicolas
    Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PM

    hi
    First thing , bad news if you are using .Net framework 1,
    just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
    good news, if you want to use webservices, you'll have to make an
    array of objects on .Net Side and send it as objects to flex, i saw
    an example on the net but i can't seem to remember where, on the
    other hand,if you want to simply use, like i do, HTTPSERVICE its a
    very nice way to talk with .Net and you can see my example here
    http://flex1-for-dummies.blogspot.com
    By the way, in your code, you have a request tag , but you
    aren't requesting anything, because if you were you would have to
    make like this
    <mx:request>
    <Artist>{yourinputtext.text}</Artist>
    </mx:request>
    So if you don't have an input text, you don't need a request
    tag, only the operation.

  • Stacked Bar Chart with Multiple Series Sort Question

    Hi,
    Apex version 4.1.1
    I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
    When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart  noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
    Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
    Incidentally, I can solve the sorting problem by combining all three series into a single query:
    select
      null as link,
      week_of as label,
      sum(customer_effort) as "Customer Effort",
      sum(project_effort) as "Project Effort",
      sum(other_effort) as "Training, Admin and Other Effort"
    from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples  posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
    Thanks,
    Mike

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Stacked Bar Chart

    Hi I would like to create a stacked bar chart in my report.
    It will have 2 dimensions and 1 Measure.
    Dimension 1 = Month
    Dimension 2 = Sales Item
    Measure = Sales_quantity
    I can't find anything in the user guide.
    Is this possible ?

    I am not sure what you understand as a "stacked bar chart" - There is a chart type "stacked bar chart" that we support. So you can have the Month as the x axis and the Sale Item as the different data sets.
    We are using the Oracle BI Beans XML description for our charts. The BI Beans chart builder helps to define the tags - that is stored in the Web Alternate Text of the Image that is included by the chart builder.
    The tag for the graph type is:
    <Graph graphType="BAR_VERT_STACK"/>
    To show 2 dimensions you need to modify the code the following way
    1) Adjust the row count
    <LocalGridData colCount="{count(xdoxslt:group(.//ROW, 'MONTH'))}" rowCount="{count(xdoxslt:group(.//ROW, 'SALESITEM'))}">
    2) Show the labels
    <RowLabels>
    <xsl:for-each-group select=".//ROW" group-by="SALESITEM">
    <Label><xsl:value-of select="./SALESITEM"/></Label>
    </xsl:for-each-group>
    </RowLabels>
    3) Add multiple rows for the SALESITEM in each column (MONTH) in the data section.
    <DataValues>
    <xsl:for-each-group select=".//ROW" group-by="MONTH">
    <RowData>
    <xsl:for-each-group select="current-group()" group-by="SALESITEM">
    <Cell><xsl:value-of select="sum(current-group()/Sales_quantity)"/></Cell>
    </xsl:for-each-group>
    </RowData>
    </xsl:for-each-group>
    </DataValues>
    The code stehms from an example I did recently for multiple line charts - so I made have some typos in there - from changing hte names. Hope it helps and you get it working.
    We should support the stacked bar charts in the builder, but it is only recently that
    people cared about the charts...
    Good luck,
    Klaus

  • Stacked Bar chart mouseover options

    I am using the stacked bar chart. When mousing over the bars, it currently displays the totals on the very top of the bar. Is there a way to make the total display inside (or at the bottom) of the bar?

    Hi HCMJ,
    By default, the bar value will not overlapping each other in stacked bar chart, and we cannot increase or decrease the gap between the series in Reporting Services.
    Based on my research, I find a workaround can achieve your requirement, please refer to the steps below:
    Create a dataset with the query below (sample data):
    CREATE TABLE #temp(name nvarchar(50),time nvarchar(50),value int)
    INSERT INTO #temp VALUES     ('Invoiced','YEAR',100),('Invoiced','MONTH',200),('Budget','MONTH',300),('Budget','YEAR',600)
    SELECT * FROM  #temp
    Insert time field to Category Groups pane, and change the group name to “time”.
    Insert value field to Values pane, then change the value to like below:
    =min(Fields!value.Value,"time")
    Insert another field with the following expression to Values pane:
    =max(Fields!value.Value,"time")
    Change the type of chart from Stacked Bar Chart to Range Bar Chart.
    Right-click the Series field to change the Fill color to #9bff8c00 (DarkOrange with 155 Transparency) or any color with Transparency you like. Now we can get the following:
    Preview it and get the following result:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Stacked bar chart errors

    I am creating a stacked bar chart and put a max row count of 50, but the graph actually shows more than 50. After the 50 data points, all of the rest of the dates along the x axis are out of order. Is there another location i also need to enforce this max row count?

    Hi HCMJ,
    By default, the bar value will not overlapping each other in stacked bar chart, and we cannot increase or decrease the gap between the series in Reporting Services.
    Based on my research, I find a workaround can achieve your requirement, please refer to the steps below:
    Create a dataset with the query below (sample data):
    CREATE TABLE #temp(name nvarchar(50),time nvarchar(50),value int)
    INSERT INTO #temp VALUES     ('Invoiced','YEAR',100),('Invoiced','MONTH',200),('Budget','MONTH',300),('Budget','YEAR',600)
    SELECT * FROM  #temp
    Insert time field to Category Groups pane, and change the group name to “time”.
    Insert value field to Values pane, then change the value to like below:
    =min(Fields!value.Value,"time")
    Insert another field with the following expression to Values pane:
    =max(Fields!value.Value,"time")
    Change the type of chart from Stacked Bar Chart to Range Bar Chart.
    Right-click the Series field to change the Fill color to #9bff8c00 (DarkOrange with 155 Transparency) or any color with Transparency you like. Now we can get the following:
    Preview it and get the following result:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • How to Release jstring (C++ dll calls Java)

    I'm trying to call a method from a Dll (written in C++) to Java. Pseudo might look like this String cstr = "abcdefghijklmnopqrstuvwxyz"; jstring jstr = NewStringUTF(cstr); CallJavaMethod(classid, methodid, jstr); // so problem is how to release this

  • My Nokia 701 saves photo with low quality

    1. I set my camera for making picture with sizes 6M (16:9) 2. I took a photo and then I checked the file - it has resolution 3264x1832 but only 823k It is too small for this resolution!!! If I will print it by 10x15, 20x30 or large it will be horribl

  • Urgent pls anser

    1) what is the difference between instance method and class method in bapi? 2)what is commit work  and explain? 3)       Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelle

  • OC4J + Apache

    hi! i currently have in my system, a running apache working hand in hand with OC4J. I'm trying to distribute the webserver load of my system by limiting all the static elements (eg, html, images) to apache and leaving all dynamic elements (servlets,

  • Form Name with a Variable

    I have a form that I built with a cfloop and I want to be able to name the field names like this field_#ID# as it does the loop.  Is there a way to do this?