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.
36 lines (35 loc) • 1.01 kB
TypeScript
declare function choiceTransformationPipeline(result: any): {
data: {};
totalCount: number;
};
declare function numberTransformationPipeline(result: any): {
value: number;
minValue: number;
maxValue: number;
data?: undefined;
} | {
data: {
value: any;
minValue: any;
maxValue: any;
};
value?: undefined;
minValue?: undefined;
maxValue?: undefined;
};
declare function histogramTransformationPipeline(result: any): {
data: any[];
intervals: any;
totalCount: number;
};
export declare const transformers: {
boolean: typeof choiceTransformationPipeline;
radiogroup: typeof choiceTransformationPipeline;
dropdown: typeof choiceTransformationPipeline;
checkbox: typeof choiceTransformationPipeline;
tagbox: typeof choiceTransformationPipeline;
number: typeof numberTransformationPipeline;
rating: typeof numberTransformationPipeline;
histogram: typeof histogramTransformationPipeline;
};
export {};