Visokio website     Downloads     Video tutorials     KnowledgeBase  
Bar/Line View: Mixing positive/negative values in stacked bars? - Visokio Forums
Bar/Line View: Mixing positive/negative values in stacked bars?
  •     dszl136154 September 11, 2012 7:18AM
    Hi - I was trying to create a Stack Bars graph with positive and negative values. I got this error "Warning: bars hidden due to negative values". How can I resolve the problem? I attach a snapshot of the graph with error.imageimage
    Attachments
    errors ex.png 235K
  • 6 Comments
  •     tjbate September 11, 2012 7:37AM
    Darius - although you can mix positive and negative values in a Bar Chart, you cannot mix positive and negative values in the 'Stack-by' field, since there is no way to show negative spaces in a positive bar. Try using the Cascade bars option rather than stacking. This allows you to show the net effect of positive and negative bars.

    P.S. Similarly, you also cannot split a Pie View by a mix of positive and negative values
  •     dszl136154 September 26, 2012 5:44AM
    I don't agree with this. If you have aggregation involved there shouldn't be a problem as the negative values will be added to positive values anyway.

    In the case where you have negative aggregation result it shouldn't be a problem to visualise it as a negative part of the stack bar. As you can see on the attached charts there are some cases where the negative values are displayed.

    Why it doesn't work across all the bars?

  •     tjbate September 26, 2012 9:18AM
    The aggregation process implied by the split of the bars does take both positive and negative values into account when calculating the total for each bar, but when stacking, i.e. dividing the aggregated split bars as into individual display sub-segments within a given bar, there is no way to show mixed negative and positive stacking sub-elements inside a given bar, even though the aggregate of the bar is a net of positive and negative values. (The same is true of a Pie View, where you cannot mix positive and negative value wedges inside the same pie). If the total is negative and there are only negative sub-segments, they will be displyed, but if the is a mix of positive and negative sub-values the warning is displayed.

    The Cascade option spreads the bar stacking elements into multiple aligned sub-bars so both negative and positive stacking elements can be displayed explictly and the alignment shows the net value in the overall bar.
  •     dszl136154 September 26, 2012 9:39AM
    Does it mean that it is impossible to create this type of Stack Bar?image
    Attachments
    stack.PNG 15K
    stack.PNG 15K
  •     steve September 27, 2012 6:48AM
    It IS possible to do this, yes. See attached file.

    (Once you have stacking or cascading active, the Layout option "Isolate negative+positive stacks/cascades" appears, which you must tick.)
    Attachments
    stack neg pos.iok 7K
  •     dszl136154 September 27, 2012 6:57AM
    That's great thanks Steve.

    PS. I didn't see that option in previous versions.
This discussion has been closed.
← All Discussions

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership