MAIDR JavaScript API
    Preparing search index...
    • Binds a D3.js fan chart to MAIDR.

      Parameters

      • svg: Element

        The SVG element containing the D3 chart.

      • config: D3PercentileBandConfig

        Configuration naming the median's path and each band's.

      Returns D3BinderResult

      A D3BinderResult with the MAIDR data and generated layer.

      bindD3PercentileBand(svgElement, {
      selector: 'path.median',
      x: 'step',
      y: 'p50',
      bands: [
      { selector: 'path.band-90', lower: 0.05, upper: 0.95, y0: 'p5', y1: 'p95' },
      { selector: 'path.band-50', lower: 0.25, upper: 0.75, y0: 'p25', y1: 'p75' },
      ],
      });