MAIDR JavaScript API
    Preparing search index...
    • The stack of bars read as a waterfall, when it is one.

      ECharts' recipe for a waterfall stacks a transparent placeholder under each visible bar. Superset follows it -- measured on 6.1.0, an Assist series painted transparent item by item under Increase, Decrease and Total, each holding a value only where it draws. So a stack is a waterfall when exactly one of its series is painted clear wherever it lifts something, and every category is drawn by at most one visible bar.

      Each visible bar spans the placeholder's height to that plus its own. Which way it went is not in the names -- a chart may call them anything -- but in the running total: a step that starts where the last one ended rose, one that ends there fell, and one rising from the baseline to the running total restates it. A stack that follows none of these is not a waterfall, and is read as the stack it is.

      Parameters

      • bars: EChartsSeriesModel[]

        The chart's bar series, all in one stack

      • horizontal: boolean

        Whether the bars run along x

      • utc: boolean

        Whether the chart's times are UTC

      • marksOf: (seriesModel: EChartsSeriesModel) => string[] | undefined

        One selector per mark a series drew, when found

      Returns { points: WaterfallPoint[]; selectors: string[] | undefined } | undefined

      The steps and their selectors, or undefined when the stack is not a waterfall