@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
34 lines (33 loc) • 2.04 kB
TypeScript
import Highcharts from "./highchartsEntryPoint";
import { IRectBySize, IAxisRangeForAxes } from "./helpers";
import { IDataLabelsVisible } from "../../../../interfaces/Config";
export declare function isLabelOverlappingItsShape(point: any): boolean;
export declare const getDataLabelsGdcVisible: (chart: any) => string | boolean;
export declare const areLabelsStacked: (chart: any) => boolean;
export declare const hasDataLabel: (point: any) => any;
export declare const hasShape: (point: any) => any;
export declare const hasLabelInside: (point: any) => boolean;
export declare const minimizeDataLabel: (point: any) => void;
export declare const hideDataLabel: (point: any) => void;
export declare const showDataLabel: (point: any) => void;
export declare const hideDataLabels: (points: any) => void;
export declare const showDataLabels: (points: any) => void;
export interface IInsideResult {
vertically: boolean;
horizontally: boolean;
}
export declare function showDataLabelInAxisRange(point: any, value: number, axisRangeForAxes: IAxisRangeForAxes): void;
export declare function showStackLabelInAxisRange(point: any, axisRangeForAxes: IAxisRangeForAxes): void;
export declare const hideAllLabels: ({ series }: any) => void;
export declare const showAllLabels: ({ series }: any) => void;
export declare function getDataLabelAttributes(point: any): IRectBySize;
export declare function intersectsParentLabel(point: any, points: any): boolean;
export declare function getShapeVisiblePart(shape: any, chart: any, wholeSize: number): any;
export declare function getLabelStyle(type: string, stacking: string): Highcharts.CSSObject;
/**
* A callback function to format data label and `this` is required by Highchart
* Ref: https://api.highcharts.com/highcharts/yAxis.labels.formatter
*/
export declare function formatAsPercent(unit?: number): string;
export declare function isInPercent(format?: string): boolean;
export declare function getLabelsVisibilityConfig(visible: IDataLabelsVisible): Highcharts.DataLabelsOptionsObject;