Question T5454
Visible to All Users

Some panel options are not applied

created 4 years ago (modified 4 years ago)

[Ticket cloned from T5424: Analytics | Angular | Register visualizer as "SelectBasePlotly" for rating type question]

Hello Serge,

The text type question render as expected but the following behaviors are not reflect though I have already configured in options.

TypeScript
1) answersOrder: 'desc', 2) showPercentages: true, 3) allowTopNAnswers: true // Sample Code let options = { labelTruncateLength: 27, allowTopNAnswers: true, hideEmptyAnswers: true, answersOrder: 'desc', showPercentages: true }; const visPanel = new SurveyAnalytics.VisualizationPanel(allQuestions, data, options);

Thanks!

Comments (2)

    Hello,

    Is your question related to the custom "text as chart" visualizer or to some other visualizer(s)?

    Thanks, Serge
    SurveyJS Team

      Hello Serge,

      Yes. It is custom 'text as chart' as per this https://surveyjs.io/Examples/Analytics?id=text-chart&platform=Angular2#content-js example.

      TypeScript
      (SurveyAnalytics.VisualizationManager as any).registerVisualizer('text', CustomVisualizer); SurveyAnalytics.localization.locales['en']['visualizer_textChartVisualizer'] = 'Text as Chart';

      Thanks!

      Answers approved by surveyjs Support

      created 4 years ago

      Hello,

      Options are need to be passed by the custom widget to the internal widget
      Here is the updated plunker - https://plnkr.co/edit/5PSASn5rwU0yvDqR

      Thanks, Serge
      SurveyJS Team