Negative values in stacked bar

Hi
I am using a custom chart.  In one column (stacked bar) I have two values (2 and -1).  I would expect the chart to draw one bar up from 0 to 2, and another bar down from 0 to -1 (as Excel would do in this situation).
However what actually happens is it draws the first bar from 0 to -1 then draws the second bar over this from -1 to 1.
As usual, any help is much appreciated, and if you need any further info please just ask.
Nick
PS Here is my data
  <?xml version="1.0" encoding="UTF-8" ?>
- <Rowsets DateCreated="2007-10-25T15:47:11" EndDate="2007-10-25T15:47:11" StartDate="2007-10-25T14:47:11" Version="11.5.3">
- <Rowset>
- <Columns>
  <Column Description="" MaxRange="1" MinRange="0" Name="DateTime" SQLDataType="93" SourceColumn="DateTime" />
  <Column Description="" MaxRange="1" MinRange="0" Name="title" SQLDataType="1" SourceColumn="title" />
  <Column Description="" MaxRange="1" MinRange="0" Name="Category" SQLDataType="1" SourceColumn="Category" />
  <Column Description="" MaxRange="1" MinRange="0" Name="Qty" SQLDataType="8" SourceColumn="Qty" />
  </Columns>
- <Row>
  <DateTime>2007-10-20T00:00:00</DateTime>
  <title>Prior</title>
  <Category>DepReq</Category>
  <Qty>-1</Qty>
  </Row>
- <Row>
  <DateTime>2008-03-15T00:00:00</DateTime>
  <title>Post</title>
  <Category>DepReq</Category>
  <Qty>-1</Qty>
  </Row>
- <Row>
  <DateTime>2007-10-20T00:00:00</DateTime>
  <title>Prior</title>
  <Category>PurRqs</Category>
  <Qty>0</Qty>
  </Row>
- <Row>
  <DateTime>2008-03-15T00:00:00</DateTime>
  <title>Post</title>
  <Category>PurRqs</Category>
  <Qty>2</Qty>
  </Row>
- <Row>
  <DateTime>2007-10-20T00:00:00</DateTime>
  <title>Prior</title>
  <Category>variance</Category>
  <Qty>-1</Qty>
  </Row>
- <Row>
  <DateTime>2008-03-15T00:00:00</DateTime>
  <title>Post</title>
  <Category>variance</Category>
  <Qty>0</Qty>
  </Row>
  </Rowset>
  </Rowsets>
Here is my Display Template
<?xml version="1.0" encoding="UTF-8"?>
<iChart AxisLabelColumns="title" ChartType="Custom" Decimals.1="0"
Decimals.2="0" Decimals.3="0" GlobalDecimals="0" GlobalMaxRange="30.0"
GlobalMinRange="-10.0" GlobalServerScaling="false"
HorizontalGridColor="#E0E0E0" InterpolateLines="false"
LabelColumns="Category" MaxRange.1="60.0" MaxRange.3="60.0"
MinRange.1="-20.0" MinRange.3="-20.0" PenType.1="StackedBar"
PenType.2="StackedBar" PenType.3="Line" SaveDate="10/25/2007 15:27:33"
ShowHorizontalGrid="false" ShowTagDescription="false"
ShowTimeControl="false" ShowVerticalGrid="false" ThreeD="true"
UseGlobalDecimals="true" UseGlobalRanges="true" ValueColumns="Qty"
Version="11.5.3" XAxisLabelDepth="2" XAxisShowLabels="false"
XAxisThreeD="false" XAxisTicksPerLabel="1" YAxisThreeD="false"
ZeroBasedCenterline="true" ZeroBasedScale="true"/>

Nick,
I would just use the StackedBar mode, since it will do a better job of determining the pseudo pen names you want based upon the data mapping of Category / Title.  If there was a particular reason for using Custom mode then please advise.
This DT seems to work just fine with the sample dataset you provided earlier:
<?xml version="1.0" encoding="UTF-8"?><iChart AxisLabelColumns="title" ChartType="StackedBar" GlobalMaxRange="1.0" GlobalMinRange="-1.0" GlobalServerScaling="false" HorizontalGridColor="#E0E0E0" InterpolateLines="false" LabelColumns="Category" SaveDate="11/06/2007 15:05:57" ShowHorizontalGrid="false" ShowMouseTracking="true" ShowTagDescription="false" ShowTimeControl="false" ShowVerticalGrid="false" UseGlobalDecimals="true" UseGlobalRanges="true" ValueColumns="Qty" Version="11.5.3" XAxisShowLabels="false" XAxisThreeD="false" XAxisTicksPerLabel="1" YAxisThreeD="false" YAxisTicksPerLabel="1" ZeroBasedCenterline="true"/>
I would also recommend using "NA" instead of "0" to keep your dataset squared up, unless the values are truly zero.  If you are building the dataset in BLS then use the nullnumber expression in the link editor instead of a hardcoded 0.  If the dataset comes from a query, the null values should be sufficient.
Regards,
Jeremy

Similar Messages

  • Apex 3.2 SVG Chart - How to plot Stacked Bar With Negative Values ?

    Currently Apex 3.2 Flash Chart (AnyChart 3.x) does not support Stacked bars with negative values.
    I try with SVG Stacked bars with positive values only, chart ploting works fine. When I add a new series with negative values (i.e -1) and I get a blank Chart region with no error.
    Based on this statement from Apex's documentation:
    *"AxisLine Indicates zero on charts that have negative values."*
    I appreciate your help on how to translate this statement into action ?
    (i.e how to override .Axisline class in CSS section ?)
    Thank you very much for your time.

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

  • Stacked bar chart with negative values

    Hi,
    trying to create a stacked bar chart I only get a grey picture. Reason: my data series provides positive and negative values.
    Can anyone tell me a trick how to fix this problem?

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

  • StackedBarChart stacked bar corrupted when add negative and positive value.

    When StackedBarChart series have (positive & negative) data stacked bar corrupted and loss data.
    I have a chart with data stacked on (-,+)Y-Axis.
    - With JfreeChart all this go rigth and data appear perfectly on each bar without loss.
    - But when using javafx StackedBar Chart , when bar series have (positive & negative) data stacked bar corrupted and loss data.
    Stackoverflow link : http://stackoverflow.com/questions/15410153/javafx-stackedbar-chart-issue .

    As stated in your StackOverflow post, you should file this as a bug on Jira.
    But I'd also point out that stacked bar charts with negative values are not a good idea. In a stacked bar chart, the highest point of the stack should represent the total of the individual bars. You lose this property if there are negative values, and the chart becomes misleading. (I'd bet that the cause of the bug is that the code assumes this property at some point.)

  • Colum Chart - (3-D) Stacked : compatible with negative values ?!

    Hi,
    In our VC model we are showing a Column Chart - 3-D Stacked.
    On our development server everything works fine. (the query gives positive values for the KPI's only btw)
    In production the bar chart is not being displayed. The bar remains on value 0. I'm quite sure this is related to the fact that we have some negative values on production for some of our keyfigures that we need in the chart. Many others are positive. This is not compatible with stacked charts I think, but.....on our quality environment the chart works fine with negative values for the same KPI's as well. The negative values are more or less ignored in the graph on quality.
    So my question is : Is it correct that negative values are officialy not compatible with VC stacked charts ? Why is it then working (ignoring the negative values) in some circumstances and other circumstances not ? The only difference between quality and production is that the KPI values are different but the same KPI's are negative anyway on these environments. The models (queries and VC model) were transported from dev->QA and to production.
    thanks for any feedback.

    Hi Todd,
    Depending how you look at costs, it's not expensive.
    A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
    If you spend a couple of days trying to integrate with something else you easily went over that amount.
    So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
    Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
    Just my thoughts,
    Dimitri

  • Stacked bars and negatives

    hello all,
    I'm having an issue with stacked bars.
    When a value in negative it actually treats it as a positive when drawing the graph!
    As an example:
    1
    2
    5
    -4
    Will bring the bar up to 12 instead of 4.
    Any ideas?
    Thanks,

    I usually put a 30sec black slug after the tone and bars. Any idea how to do that? I can insert a gap ok but can't seem to set it's end point to 30sec duration.
    Ooops - sorry Frank - I went to Mark's Rippletraining site and thought it was he who'd posted the link . Thanks for that pointer! Looks like an interesting resource.

  • Stacked chart with negative values

    Is it possible to create a stacked verticle bar chart that can display a negative value below the bottom line? Currently, all of my my charts are displaying negative values as if they were positive and the only way to know that the value is negative is to hover over the bar and read the hint.
    Thanks in advance for your help,
    Todd

    Hi Todd,
    Depending how you look at costs, it's not expensive.
    A single developer license of Anychart 5 costs USD 499.00 - 15% if you use the APEX15 promotion code.
    If you spend a couple of days trying to integrate with something else you easily went over that amount.
    So really, it depends in which perspective you look at it. The workaround with Excel, is that really an option? How long would it take for every person wanting to see that screen? How long would it take before you get to $440?
    Anyway if you wait till next year, Anychart 5 is included in APEX 4.0 and you have it out of the box.
    Just my thoughts,
    Dimitri

  • Stacked bar chart should not sort by values but by month

    Hello,
    I have a problem concerning a stacked bar chart (Apex 4.0 / Anychart). X-Axis contains Months and Y-Axis contains values. Values are splittet to 4 Values (a,b,c,d)
    But if there is no value for a in February the sequence will jump to march displaying march before February and February at the end of the chart.
    In every month some values are missing, so I am not able to sort for a specific value.
    Do you know how to solve this problem? Thx in advance
    Thorsten

    Try to short in criteria and see how it works if not working check these links for reasons
    http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
    Re: Sort measure on bar chart
    If helps pls mark

  • Stacked Bar Chart - Hiding legends with 0 values

    I'm using Crystal Reports 2008, building a report that will eventaully be called from an ASP.NET page.
    I've built a stacked bar chart that is displaying values per month of the number of various vehicle types.  The X values are the months, the Y values are the number of each vehicle type and the stacked series are each different vehicle type.  However, depending on the months that the user asks for, there may be some vehicle types that do not have any data, thus the number is 0.  Is there a way for the report to see that there is 0 data for this vehicle type and thus not include it in the legend of the various vehicle types?
    First time poster, so hopefully I explained everything well enough.  I searched the forums for anything matching Stacked Bar Chart and did not find anything.  I don't know how to find/query SAPNotes.
    Thanks.

    Thanks for the response, but I'm not familar with Alters?  Could you describe a bit more?  I didn't see anything in the documentation about it.

  • Stacked Bar showing VALUE literal instead of X axis value in hover hint

    I am converting to APEX 3.0 and noticed that the new "Show Hint" doesnt display the X axis value on a Stacked bar. Instead it shows the literal "VALUE". For example, I am displaying the number of orders for a given day. X=date, Y = count. I was expecting the Hint to display "11/15/07, 15" but instead it displays "VALUE, 15".
    This same sql displays correctly when I use it in a Line Chart.
    Any ideas? Thank You

    Bump...having same issue, still scanning message board for solution.

  • Negative values in Bar chart

    Hi,
    I have to plot negative values in a horizontal bar chart. Only the +ve values of the data column comes up in  the bars,
    How should i modify the xsl code
    Thanks in advance
    Krishna

    Hello,
    XI3 has several types of horizontal charts and there are some that seems to describe your requirements.
    I attach some pictures allowing you to see if it meets your needs.
    http://imageshack.us/photo/my-images/207/generalkg.jpg/
    http://imageshack.us/photo/my-images/513/deski1.jpg/
    Regards,
    Philippe

  • Problems with Value Labels in Stacked Bar Chart

    Post Author: RGR
    CA Forum: Charts and Graphs
    When choosing a stacked bar chart to display the contribution of 2 values to the overall total, the graph plots correctly, but the value labels are incorrect.  Instead of labeling the values for A & B, the graph is appropriately labeled for A ,but the label for B is the total for A+B.  It should be just "B".
    Has anyone else experienced this problem or has a solution.  I am using CR 2008
    TX

    Post Author: Joy Hampson
    CA Forum: Charts and Graphs
    I have this issue a lot with CR XI.  As I have never used CR 2008, I am not sure of the commands.  But in CR XI, right click on the graph and select Chart Options.  On the Data Labels tab, at the bottom there are two options: Cumulative and Absolute.  It defaults to Cumulative, so change to Absolute.  That always works for me.

  • Show value and percentage in Stacked Bar in OBIEE 11.x

    Hi All,
    I need to show the values as well as percentages for a particular measure in stacked bar chart.
    Any help in this regard?
    Regards,

    hi
    check the properties of Webtemplate for Graph.
    in that columns values can change,and over thr make sure that automatic for all values,initially it has the userdefined option amnd change it  into automatic and i thk you can find the categories options to do.try with this
    mahesh

  • Suppress zero values for data labels in a stacked bar chart.

    I've seen this question asked before, but I can't seem to find anyone who knows how to do this.  I've made a stacked bar chart from a crosstab result, and I don't want to show labels that have a zero value.  This seems like others would have this same issue as it can really clutter up a chart.  The link below shows my chart.  I am trying to remove the labels that say "On-PW 0"
    http://i1199.photobucket.com/albums/aa472/gno722/question%20examples/crystalquestion.jpg

    the steps below will work on a regular chart..not sure about stacked...
    1) in Preview mode of the report click on a Y axis value and go to Data Y Axis Options
    2) go to Scale and set  a Minimum Value of .001
    3) check the Don't Draw Out Of Scale Values
    cheers,
    jamie

  • Stacked Bar Chart - Values of the Bar

    Hi,
    I have a stacked bar chart with columns as "Project Name", Rows as "Stages", and measures as "Cost". I have different stages in the X axis and the Projects are stacked for each stages. When I scroll my mouse over the stacks it shows me the "Cost" of the project. Is there a way I can show both the "Project name" and the "Cost", when I roll my mouse over the stacks?
    Thanks for your time and help.

    Hi ssk,
    I assume its 10g and is this what your looking for http://obiee101.blogspot.com/2008/01/obiee-xy-and-data-in-mouse-over-label.html
    UPDATED POST
    It is the same procedure for bar charts...You need to play with it,never i had this requirement....give a try
    Cheers,
    KK
    Edited by: Kranthi.K on Jun 27, 2011 8:40 PM

Maybe you are looking for

  • Sending an email using action in complaint transaction

    Hi, I am using complaint transaction. I want to send an email to employee responsible. Initially I create and save the complaint transaction. After saving it, i open the transaction again and change the employee responsible at that time the email sho

  • Safari adding .doc to .docx download

    Hi all,     Using a 2010 imac with Yosemite installed. Latest version of Safari. Using latest version of OpenOffice. I need to download some Word docs from a website each week. The Word files end with .docx, but when Safari downloads them, it adds .d

  • How do you add a Facebook "like" button to a Fluid Grid layout?

    There are two snippets of javascript from Facebook you're supposed to paste into two different places. Something about the Dreamweaver fluid grid makes it work differently, though, and I can't figure out what it is. I can't figure out what to do with

  • Convert military hours time to civilian time

    Fellows: How do I convert the military hours to civilian time (hours 1 through 12 followed by either "a.m." and "p.m."). . Thanks /* The following program will print hours in military time */ import java.util.Date; public class Hours public static vo

  • Files missing from install directory

    not sure what's happened to my computer but I can no longer install programs or updates for programs as I get the message "files missing from install directory" How did they get corrupt in the first place? I get this when trying to download yahoo mes