import { ChartCtrParams, MarginCtrParams } from '../types'; import Axis from '../Base/axis'; import Data from '../Base/data'; import BarChartStyle from './style'; /** * Class representing a Bar Chart */ export declare class BarChart { private elementId; private element; private dims; private margin; private toolTip; private useToolTip; private animators; data: Data; fields: any; private _xField; private _yField; xAxis: Axis; yAxis: Axis; style: BarChartStyle; private barSelectionIdentifier; /** * Constructs a new bar chart instance * ```ts * const data = [{ x: 'US', y: 12394 }, ... ] * const barchart = new AchoViz.BarChart({ elementId: '#barchart', data }); * ``` * @param params - constructor params * @returns instance of a BarChart */ constructor(params?: ChartCtrParams); /** * Handles drawing, mounting, and ultimately rendering the chart */ render(): void; /** * Draws the x axis */ private _drawXAxis; /** * Draws the y axis */ private _drawYAxis; /** * Draws the bars with respect to data provided to the instance */ private _drawBars; /** * Event handler triggered when mouse is detected over a bar * @param e * @returns */ private _onOverBar; /** * Event handler triggered when mouse has left the bar * @param e * @returns */ private _onLeaveBar; /** * Event handler triggered when mouse moves to another bar * @param e * @returns */ private _onMoveBar; /** * Sets the instance's margin properties * @param value */ setMargin(value: number | MarginCtrParams): void; /** * Automatically configures the axis scales, domain, and ranges */ private _useAutoAxis; /** * Hook to automatically configure the chart's tool tip instance * @returns */ private _useTipConfig; /** * Hook to automatically register bar related mouse events */ private _useInteractions; }