Flocc
    Preparing search index...

    Class LineChartRenderer

    0.2.0

    Hierarchy

    • AbstractRenderer
      • LineChartRenderer
    Index

    Constructors

    Properties

    background: HTMLCanvasElement = ...
    environment: Environment

    Points to the Environment that this renderer is tied to. This is automatically set when the renderer is created.

    height: number
    metrics: Metric[] = []
    opts: LineChartRendererOptions
    t: number = 0
    width: number

    Methods

    • Mount this renderer to a DOM element. Pass either a string representing a CSS selector matching the element or the element itself.

      // mounts the renderer to the element with the ID `container`
      renderer.mount('#container');

      // mounts the renderer to the element itself
      const container = document.getElementById('container');
      renderer.mount(container);

      Parameters

      • el: string | HTMLElement

      Returns void