Skip to content Skip to sidebar Skip to footer

Flot: Order The Stacking Of The Bars Throughout Screen With Multiple Stacked Bar Charts

Se the JSFIDDLE Q: I need to order the stacked bars so it'll be consistent throughout a screen with multiple stacked bar charts. e.g if one bar has stacked labels starting with th

Solution 1:

There is a problem with the stacking when one data series in the chart has a gap at a specific x value. For example the middle bar (at x = 2) in chart 2:

{
    label: "084",
    data: [
        [0, 3],
        [1, 12],
        [2, 0], // this was missing, after adding it, the stacking works
        [3, 53],
        [4, 13]
    ]
}

Post a Comment for "Flot: Order The Stacking Of The Bars Throughout Screen With Multiple Stacked Bar Charts"