Menu

#113 Offsetting stacked bars does not draw all bars

open
nobody
5
2012-09-19
2009-06-17
danno
No

When trying to offset stacked bars with daily data on a XAxis.Type = AxisType.Text axis, the bars only show up if they match certain criteria and the data ends up worthless. With some offsets, the second stack just disappears, with other offsets, those that create an overlapping interval, the second stack ends up on top of an (incorrect) adjacent stack that was offset in the opposite direction.

My goal is to have two stacked bars per day, as putting all of the data in one stack makes no sense with my data set, but showing the two subsets together provides lots of value. I am attaching two images to show the bad behavior and the desired behavior. I will also submit a patch that fixes the behavior, though I can't vouch for its usability in all scenarios.

Discussion

  • danno

    danno - 2009-06-17

    Image showing bars offset and missing bars

     
  • danno

    danno - 2009-06-17

    Image showing bars offset in opposite directions on the same day.

     
  • danno

    danno - 2009-06-17

    Patch file containing fix with VERY LIMITED TESTING.

     

Log in to post a comment.