Stacked CF Chart Addition Issues

I think this is a bug, but I thought I'd put it out here and see if anyone has any suggestions before I go off reporting this to Adobe.
I have the below chart set up, and instead of putting the lower/first value in an item in front, it adds the two items together (w + w or y + y), which I guess might be expected.  I really don't use Excel much, so I'm not sure what's typical.  Anyway, if I have a client that sells $40 in tshirts and $60 in pants the bar will go up to $100, which is fine, because they sold $100 in inventory.  Now I'm trying to add a line chartseries to show something else month to month.  I wanted the datapoints at the positions you see below, however since this all is adding up, I thought I would set the item value to desired_value-total_item_values.  So if I wanted the line at month 1 to be 37 I would set the value to -63 (37 - 100 = -63).  However, when I do this my line marker is at 153 and the y axis now goes down to -53.
Does anyone have an idea of how I could get the line to show up at 37?
Thanks!
<cfchart seriesplacement="stacked" format="jpg">
      <cfchartseries type="bar" seriescolor="003366">
            <cfchartdata item="w" value="40">
      </cfchartseries>
      <cfchartseries type="bar" seriescolor="9966FF">
            <cfchartdata item="w" value="60">
      </cfchartseries>
      <cfchartseries type="bar" seriescolor="003366">
            <cfchartdata item="x" value="52">
     </cfchartseries>
     <cfchartseries type="bar" seriescolor="9966FF">
            <cfchartdata item="x" value="78">
     </cfchartseries>
     <cfchartseries type="bar" seriescolor="0000FF">
            <cfchartdata item="y" value="60">
     </cfchartseries>
     <cfchartseries type="bar" seriescolor="FFFF99">
            <cfchartdata item="y" value="70">
     </cfchartseries>
    <cfchartseries type="line" seriescolor="000000" markerstyle="triangle">
          <cfchartdata item="w" value="-63">
          <cfchartdata item="x" value="-30">
          <cfchartdata item="y" value="-52">
    </cfchartseries>
</cfchart>

Depending upon your query structure, you can force a zero based centerline by setting the Y-axis ranges dynamically.  I am not working in 11.5.3 currently, but ran into a problem with line charts in 12.0.2.  The zero centerline flag did not work, so I dynamically generated the ranges and linked them in.
You can probably do the same with a little extra BLS coding.
Mike

Similar Messages

  • Stacked bar chart order issue

    I am definitely missing something here.
    I have a stacked flash bar chart which displays 3 types of counts per year_month. I cannot get the bars in the correct order.
    It's mostly correct except for 2 bonkers cases where it puts 2005_12 and 2006_01 to the right of
    2011_01 . I cannot figure out what causes this. There is a peculiarity involving those 2 year_months in that every other
    year_month had > 0 number of the first type of count except these 2 which solely had the second type of count.
    But how this translates into an order issue I have no idea. The query orders the data by year_month.
    Any ideas?
    the last part of the query is:
    select null LINK, (a.YEAR_MONTH) "LABEL", b.OVERNIGHTS,c.DAYTIMES,d.NAPS from
    year_months a, myovernights b, mydaytimes c, mynaps d
    where a.yearmonth < to_char(sysdate,'YYYYMM') and
    a.year_month = b.year_month(+) and
    a.year_month = c.year_month(+) and
    a.year_month = d.year_month(+) order by a.YEAR_MONTH
    year_months is a view with 2 fields:
    year_month varchar2(7) (yyyy_mm)
    yearmonth number(6) (yyyymm)
    and contains all the year_months from our time 0 up to 2020.

    yeah! I figured it out, based on reading this thread:
    Anychart, show empty diagram ?
    So stacking chart-ers, make sure to remember to use nvl in your query to return 0 instead of null!
    select null LINK, (a.YEAR_MONTH) "LABEL", nvl(b.OVERNIGHTS,0),nvl(c.DAYTIMES,0),nvl(d.NAPS,0) from
    year_months a, myovernights b, mydaytimes c, mynaps d
    where a.yearmonth < to_char(sysdate,'YYYYMM') and a.year_month = b.year_month(+) and
    a.year_month = c.year_month(+) and
    a.year_month = d.year_month(+) order by a.YEARMONTH
    duh, I knew it would be something elementary! Having said that though I don't think it should be the case that
    the order departs from the order in the query. It would be better to change this behavior or at least warn people
    that it happens.

  • WebI Horizontal stacked chart formatting issue

    I have created a stack chart report and I have labels defined in the X - axis. We have the issue with the gap between the X - axis line and the labels. We would like to know if we can reduce this gap between the axis line and the labels. I have attached the sample image below for your reference.
    Edited by: Madan Chellu on Aug 31, 2009 11:51 PM

    Not really.  I need to have stacked bars grouped.  For example, assume you had survey results.  For question 1, you had a bar with 20 disagrees, 5 neutrals, and 50 agrees.  For question 2, a bar with 10 disagrees, 2 neutrals and 30 agrees, and so on for say 10 questions.  This would be your stacked bar chart.  Now, say you had information spanning a number of years, 2008, 2009, 2010.  What I want is a group of stacked bars (3 one for each year) for Q1, then 3 more stacked bars for Q2 and so on.
    This is a combination of the grouped and the stacked bar charts.

  • 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

  • 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

  • Stacked bar chart issue

    I have a stacked bar chart that works fine until one of the series involved returns no data - then it shows an empty chart with "no data found" on top. Anyone has any idea? Thanks

    Sorry for expressing my proposal in a wrong way. This is what I meant:
    http://htmldb.oracle.com/pls/otn/f?p=31517:46
    If you click on the dept 70 (which doesn't exist in my table) the chart will still show up. This workarround is good for the most of the cases where there is a requirement like yours. There , you will also find the chart query behind.
    The problem of no data found message was in my case present mostly there, where I needed to track a development of values grouped by time periods (months, quarters) and then query some portions of it.
    Denes Kubicek

  • 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

  • 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

  • Problems with stacked bar chart in Java SDK and CRDesigner

    Hi @ll,
    I have an issue with the rendering of stacked bar charts through the Java SDK and the CRDesigner. unfortunately, my research in this forum and with the help of aunt google didn't lead to success.
    These are my problems:
    I have a  stacked bar chart which, when datasets/stacks increase in number per bar, displays errors:
    1.)  the single stacks of the bar merge together randomly and form bigger stacks with the sum of the singles. the information of  single stacks gets lost in the bar.
    2.)  the total sum of all singles is bigger than the maximum value on the y-axis displays. thus, the scaling is wrong.
    1.) appears in the CRDesigner as well as in the Java SDK
    2.) only occurs in the Java SDK
    Is there any trick to turn the random merging of slices off?
    Is the false scaling a known issue and is there a bugfix/workaround?
    many thanks for all advice
    Tom

    hi folks,
    i found the answer to the above problems:
    when you specify the recordfields that are responsible for the change to the next stack or bar, the 'stack' fields have to be unique.
    in my case i evaluated durations in msec (as stacks) from different devices (as bars). randomly i had the same durations for one device. what happens is, that CR does not notice a change and accumulates to the first stack with the same duration.
    surprisingly this also seems to derange the axis scaling. fix the problem by simply using an overall unique recordfield like rownum or a formula that forms the current timestamp to text as identifier for the stacking.
    cheers
    .t

  • Stacked Bar Chart Question

    Hi, I am creating a stacked bar chart, and I am encountering 3 issues I hope you can help me with:
    1)  The chart has positive and negative values.  I have zero based centerline checked, but I do not see 0 on the Y axis.
    2)  The applet width is 900 pixels.  The chart can have a variable number of bars.  When it has a small number of bars, they fill the entire chart.  Is there a way to set the width to a fixed amount?
    3)  Is there a way to set a logical interval amount?  Currently the numbering is not intuitive.
    Thanks
    p.s.  We are using 11.5.3
    Edited by: Richard Keegan on Jun 13, 2008 5:18 PM

    Depending upon your query structure, you can force a zero based centerline by setting the Y-axis ranges dynamically.  I am not working in 11.5.3 currently, but ran into a problem with line charts in 12.0.2.  The zero centerline flag did not work, so I dynamically generated the ranges and linked them in.
    You can probably do the same with a little extra BLS coding.
    Mike

  • Stacked Bar Chart - no data found

    I have a page with a report and a stacked bar chart. They are both based on the same query condition. When I call the page the report runs and shows the result but the chart shows "no data found" message. After pressing the submit button the chart finaly shows the result. Any clues what the problem could be? Can I create a process that would submit the page when I open it? Eventually only once per session?
    This is a funny behavior. It occurs only sometimes. I am not able to reproduce it by will.
    Denes Kubicek

    Hello Flavio,
    I know why this happened in my case - I added an additional condition using a page item as a bind variable to my ...WHERE... statement. This item had a default value.
    After that the chart showed no data found but everything else worked fine. As soon as I comment out that condition (I have plenty of similar conditions in that statement and they work), the chart would show as expected. It was like the chart select statement would see the item empty (NULL) but the report using the same conditions would find the default value in it.... after submitting the page, it worked fine for the rest of the session.
    Just now, I added a computation process for that page item, to set it on a static value (the same I had as the default value) - On Load Before Header. I also added a condition to it to fire only if the value of the item is NULL, to avoid unnecessary processing. After this my chart showed what was expected.....
    I am sure your problem is of a similar nature. You need to check your select statement I suppose.
    Denes Kubicek

  • Add Total to Stacked Column Chart on the top and another important thing is the data are from SharePoint site

    the same with the following description from another question:
    "How can I display a total on top of each column on a stacked column chart (using
    reporting services 2008)? If I use Data Labels I can display the
    values for each part of the stack on a stacked column, but I want to be display the total.
    For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
    and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
    and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
    what should I do with this? Can anyone give me a hand?
    thank you very much.

    Hi sophiexu,
    If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
    The following thread about how to simulate chart legend is for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Help with stacked bar charts

    Help..................
    I am definitely missing something.
    I want to do something like the attached, stacked bar chart example.  This is pretty much
    one of the examples.
    What I need is for a horizontal chart instead of a vertical.  When I right click the legend and
    chose bar charts, it only shows vertical.  After messing with this for a couple of hours,
    I give.
    Any suggestions would be much appreciated.
    Attachments:
    Stacked Bar Graph.vi ‏43 KB

    Another stacked bar graph plea for help!
    My scenario: I am recording 3ph current values (red, yellow, blue) on multiple circuits for some electrical tests we do.
    I want to present this data on a screen that is most visible from a distance, so the approach I have taken when I last wrote the software in Delphi was to have each 3 ph circuit represented by a 3 channel bar chart where the three channels are stacked front to back in order of magnitude. This allowed me to add multiple 3 channel circuits next to these to fill the screen from left to right.
    See attached Excel file to make it clear. I hope!
    The main issue I see is that the colour of plot needs to move front to back with the magnitude. ie Red is not always the front plot, it is the 'smallest' of the three plots that stays at the front.
    Some tests we do, may have 12 x 3ph circuits of this type which fills the screen up and can make it very busy. Rather than having 36 plots left to right, by stacking them in groups of three, I reduce the left to right number to 12 plots. The screen can then be viewed from a distance much easier.
    Any suggestions? I am expecting I will need to write my own routine for this, which if I do, i am quite happy to share when complete.
    See (and run) the attached LabVIEW code of my progress so far.
    thanks  Adam
    Message Edited by tca-adam on 11-16-2006 01:27 PM
    Attachments:
    Stacked Bars example.xls ‏24 KB
    Create CurrBal Graph Data.vi ‏21 KB

  • Using a Stacked Bar Chart With an Accordian Menu

    I am having difficulty using a stacked bar chart with an accordian menu. I am able to have one stack bar populate but the other four stays blank. There seems to be an issue with my destination. I dont think it likes that my destination is more than one row and one column. Is there a way to fix this?

    Hello,
    I think there may be an issue in how your model/Accordion Menu was configured.  What insert option are you using?  Your destination should only be 'one' row OR 'one' column at the most.
    Thanks,
    AJ

  • How to creat a grouped stacked bar chart

    Hi,
    I am trying to create a grouped stacked bar chart.
    For 'on change of ' i have -> 1) update_month                                                                               
    2) update_source ( i have 2 values for this field -> website and ivr)
    And for 'show value' field i am trying to use 1) sum of valid_count
                                                                          2) sum of invalid_count
    -> I need two stacked bars for each month, each stacked bar belongs to either website or ivr and is made of valid and invalid counts for that particular update source.
    when i tried to use the fields as i mentioned above, i got an error saying
    'The data you have selected doesnt fit the chart type' and explanation is as follows 'This chart type requires 2 on change of fields and i show value field OR 1 on change of field and many show value fields'.
    I have selected a stacked bar chart.
    Does any one know how to do this?
    i am trying to create a chart similar to the one in the following link http://www.java2s.com/Code/Java/Chart/JFreeChartStackedBarChartDemo4.htm
    Thanks

    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

Maybe you are looking for

  • W/O DSO - Delta doesnu00B4t work (Request by Request)

    Hi experts, I´m facing something really strange to me. I really need to load data from a W/O DSO to another W/O DSO with delta functionality (request by request), but it doesn´t work at all. It´s condensing all requests in a single one in target W/O

  • YUV OR VGA FOR EXTERNAL SCREEN

    I want to use an external screen but my VGA input of the external screen is already busy by another computer, so guys tell me if YUV is as good in terms of quality audio/video than VGA ?

  • More than one work center for one operation

    Hi Experts, Is it posssible to assign more than one work center to one operation,in a maintenance order? for example if head fitter and helper has executed maint.activity,how we can do this Thanks in advance Regards Prashil

  • Error during opening IR and ID

    JAR resources in JNLP file are not signed by same certificate I have gone through blogs and a lot of homework i have done but still error persist. Rajesh Edited by: Rajesh on Mar 13, 2009 7:25 PM

  • Starting a remote login through ABAP

    Hello! First of all, I am a beginner in ABAP :). Now the question - I have registered a remote R/3 system in SM59 and the remote login works. Is it now possible to start the remote login for that particular system through an ABAP program? If so how d