import Axis from '../Base/axis'; import Data from '../Base/data'; import Transforms from '../Base/transforms'; import { ChartCtrParams } from '../types'; export default class LineChart { 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 LineChart instance * ```ts * const data = [{ x: 1, y: 135.9 }, ... ]; * const line = new AchoViz.LineChart({ elementId: '#line', data }); * ``` * @param params - constructor params * @returns instance of a LineChart */ constructor(params?: ChartCtrParams); /** * Handles drawing, mounting, and rendering the line chart instance */ render(): void; /** * Draws the x axis */ private _drawXAxis; /** * Draws the y axis */ private _drawYAxis; /** * Draws the line with respect to the data provided to the instance */ private _drawLine; /** * Automatically configures the axis scales, domain, and ranges */ private _useAutoAxis; }