import Axis from '../Base/axis'; import Data from '../Base/data'; import Transforms from '../Base/transforms'; import { ChartCtrParams } from '../types'; /** * Lollipop chart class. * Generally used to show the relationship between a numerical and categorical variable. */ export default class Lolli { 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; private pointSize; /** * Constructs a new LolliChart instance * ```ts * const data = [{ x: 'US', y: 12394 }, ... ] * const line = new AchoViz.LolliChart({ elementId: '#lolli', data }); * ``` * @param params - constructor params * @returns instance of a LolliChart */ constructor(params?: ChartCtrParams); /** * Renders, draws, and displays the chart on the dom */ render(): void; /** * Draws the instance's x axis */ private _drawXAxis; /** * Draws the instance's y axis */ private _drawYAxis; /** * Draws the lines that bind to the data provided */ private _drawLines; /** * Draws the circles on the lines that bind to the data provided */ private _drawCircles; /** * Hook that automatically configures the axis' domains, ranges, and scales */ private _useAutoAxis; }