@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Class GraphPresentationStrategyAbstract

    Abstract base for chart presentation strategies.

    A strategy receives an array of ChartSeriesData (one or more named data series) and a target size, and must return a ChartRenderOutput — either an SVGSVGElement (kind: 'svg') or an ImageData (kind: 'imagedata').

    When the array contains a single series the chart looks identical to a classic single-dataset chart. Multiple series are overlaid on the same axes (e.g. grouped bars, multiple lines, different-coloured scatter groups).

    Built-in implementations:

    const strategy = new BarGraphStrategy();
    const output = strategy.render(seriesData, { width: 400, height: 300 });
    // output.kind === 'svg'

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    Human-readable name shown in legends / tooltips when identifying the active strategy.

    Methods