Question T7155
Visible to All Users

Change background color

created 4 years ago (modified 4 years ago)

Hi, recently i started using you analytics and I have few questions:

1 Background color
VisualizationPanel has backgroundColor property, I would change the original color #f7f7f7 to more fit my app.
How can I change it? For now, I change the background color in CSS, but for example, in the word cloud canvas, I can’t do that

2 Disable filters
I found you will provide the option allowSelection, which allows disabling filters when it will be provided?
I wouldn't filter result in my app, for now I can hide the reset filter button in the header, but I can’t disable adding a filter on click on a bar in the chart.

3 Select
In my app I use react-select which allow me to style the whole component, you use html select which is really hard to customization, is any way to style options in select, which you use?

Answers approved by surveyjs Support

created 4 years ago

Hello,

I've fixed the issue via the https://github.com/surveyjs/survey-analytics/commit/5244de0c4fa7428be71e7cd9e536f41d9b0fdb4e commit. Fix will be available in the nearest minor update.

Now you can set the following options to accomplish your tasks:

JavaScript
var options = { allowSelection: false }; var visPanel = new SurveyAnalytics.VisualizationPanel( survey.getAllQuestions(), data, options ); visPanel.showHeader = false; visPanel.backgroundColor = "red";

Olga,
SurveyJS Team

    Comments (2)

      I understand this has been changed in the version v1.8.52, but the background still does not change

      Clipboard-File-1.png
      Clipboard-File-2.png

        Hello,

        These changes will be included in the 1.8.53 release.

        Thanks, Serge
        SurveyJS Team