UNPKG

survey-analytics

Version:

SurveyJS Dashboard is a UI component for visualizing and analyzing survey data. It interprets the form JSON schema to identify question types and renders collected responses using interactive charts and tables.

27 lines (26 loc) 1.16 kB
import { Question } from "survey-core"; import { VisualizerBase } from "./visualizerBase"; export declare class NumberModel extends VisualizerBase { private _resultAverage; private _resultMin; private _resultMax; static stepsCount: number; static generateTextsCallback: (question: Question, maxValue: number, minValue: number, stepsCount: number, texts: string[]) => string[]; protected chartTypes: Array<string>; chartType: String; static showAsPercentage: boolean; constructor(question: Question, data: Array<{ [index: string]: any; }>, options?: { [index: string]: any; }, name?: string); protected onDataChanged(): void; protected onChartTypeChanged(): void; protected setChartType(chartType: string): void; destroy(): void; generateText(maxValue: number, minValue: number, stepsCount: number): string[]; generateValues(maxValue: number, stepsCount: number): number[]; generateColors(maxValue: number, minValue: number, stepsCount: number): string[]; convertFromExternalData(externalCalculatedData: any): any[]; protected getCalculatedValuesCore(): Array<any>; }