UNPKG

@railzai/railz-visualizations

Version:
53 lines (52 loc) 1.86 kB
import { RVConfiguration, RVFilterStatements, RVOptions } from '../../types'; export declare class StatementsChart { /** * Configuration information like authentication configuration */ readonly configuration: RVConfiguration; /** * Filter information to query the backend APIs */ readonly filter: RVFilterStatements; /** * For whitelabeling styling */ readonly options?: RVOptions; private loading; private _configuration; private _filter; private _options; private _dataFormatted; private errorStatusCode; private chartOptions; private containerRef?; /** * Validates if configuration was passed correctly before setting filter * @param configuration - Config for authentication * @param filter - filter to decide chart type to show * @param options: Whitelabeling options * @param content - content to text that should display * @param triggerRequest - indicate if api request should be made */ private validateParams; watchContainerRef(newValue: HTMLDivElement, _: HTMLDivElement): void; watchFilter(newValue: RVFilterStatements, oldValue: RVFilterStatements): Promise<void>; watchConfiguration(newValue: RVConfiguration, oldValue: RVConfiguration): Promise<void>; watchOptions(newValue: RVOptions, oldValue: RVOptions): Promise<void>; private propsUpdated; /** * Request report data based on filter and configuration param * Formats retrieved data into Highcharts format using formatData * Updated Highchart params using updateHighchartsParams */ private requestReportData; /** * Using getHighchartsParams,Combine generic stacked bar line * chart options and formatted data based on the report type * into one option for highcharts */ private updateHighchartsParams; componentWillLoad(): void; private renderMain; render(): HTMLElement; }