MAIDR Documentation - v4.4.0
    Preparing search index...
    • Binds a D3.js alluvial diagram to MAIDR.

      An alluvial is a sankey whose node columns repeat — the same category observed at several points, with the ribbons carrying how much moved between them — so the extraction is that of bindD3Sankey and only the chart's announced name changes.

      Parameters

      • svg: Element

        The SVG element containing the D3 alluvial diagram.

      • config: D3FlowConfig

        Configuration specifying the selector and data accessors.

      Returns D3BinderResult

      A D3BinderResult with the MAIDR data and generated layer.

      bindD3Alluvial(svgElement, {
      selector: 'path.ribbon',
      title: 'Party support between elections',
      axes: { x: 'Group', y: 'Voters' },
      });