import Axis from '../Base/axis'; import Data from '../Base/data'; import Transforms from '../Base/transforms'; import { ChartCtrParams } from '../types'; export default class Scatter { private elementId; private element; private dims; private margin; private toolTip; private useToolTip; private animators; data: Data; private _xField; private _yField; xAxis: Axis; yAxis: Axis; transforms: Transforms; /** * Constructs a new scatter plot instance * ```ts * const data = [{ x: 1710, y: 208500 }, ... ]; * const scatter = new AchoViz.Scatter({ elementId: '#scatter', data }); * ``` * @param params - constructor params * @returns instance of a ScatterPlot */ constructor(params?: ChartCtrParams); /** * Handles drawing, mounting, and rendering the scatter plot */ render(): void; /** * Draws the plot instance's x axis */ private _drawXAxis; /** * Draws the plot instance's y axis */ private _drawYAxis; /** * Draws the points on the plot */ private _drawPoints; /** * Hook that automatically configures the axis scales, domain, and ranges */ private _useAutoAxis; }