import * as React from 'react'; import { IgrLegendBase, IIgrLegendBaseProps } from './igr-legend-base'; import { Legend } from "./Legend"; import { LegendOrientation } from './LegendOrientation'; import { ReactWrapper } from "igniteui-react-core"; /** * Represents a legend in a IgxDataChartComponent control. * * The `Legend` helps end-user identify visuals of chart series with contextual information related to the data plotted in the chart control. * * ```ts * * * * * * ``` * * ```ts * public onChartRef(chart: IgrDataChart) { * this.chart = chart; * if (this.legend) { * this.chart.legend = this.legend; * } * } * * public onLegendRef(legend: IgrLegend) { * this.legend = legend; * if (this.chart) { * this.chart.legend = this.legend; * } * } * ``` */ export declare class IgrLegend extends IgrLegendBase { container: ReactWrapper; private _elRef; render(): React.DetailedReactHTMLElement<{ className: string; ref: (div: HTMLDivElement) => void; }, HTMLDivElement>; private _getMainRef; componentDidMount(): void; private initializeContent; constructor(props: IIgrLegendProps); private _wrapper; destroy(): void; protected createImplementation(): Legend; get i(): Legend; /** * Gets or sets the current Legend object's orientation. * * ```ts * * ``` */ get orientation(): LegendOrientation; set orientation(v: LegendOrientation); /** * Gets or sets color of text * * ```ts * * ``` */ get textColor(): string; set textColor(v: string); /** * Gets or sets style of text. * * ```ts * * ``` */ get textStyle(): string; set textStyle(v: string); } export interface IIgrLegendProps extends IIgrLegendBaseProps { /** * Gets or sets the current Legend object's orientation. * * ```ts * * ``` */ orientation?: LegendOrientation | string; /** * Gets or sets color of text * * ```ts * * ``` */ textColor?: string; /** * Gets or sets style of text. * * ```ts * * ``` */ textStyle?: string; }