Initialises a plotter for bipolar values (-1...1)

const p = BipolarView.init(`#my-canvas`);
// Shows the dot at 1, 0.5
p(1, 0.5);
  • Parameters

    • elementQuery: string
    • options: Readonly<{
          asPercentages?: boolean;
          axisColour?: string;
          axisWidth?: number;
          bgColour?: string;
          displayLastValues?: number;
          dotColour?: string;
          dotRadius?: number;
          height?: number;
          labelColour?: string;
          labelPrecision?: number;
          labels?: [string, string];
          padding?: number;
          renderBackground?: Render;
          showDot?: boolean;
          showLabels?: boolean;
          showWhiskers?: boolean;
          whiskerColour?: string;
          whiskerSize?: number;
          width?: number;
          yAxisBottomNegative?: boolean;
      }> = {}

    Returns BipolarView