Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support grouping of column questions for matrix dropdown into a single chart #163

Open
Tracked by #426
tsv2013 opened this issue Aug 25, 2021 · 6 comments
Open
Tracked by #426
Assignees

Comments

@tsv2013
Copy link
Member

tsv2013 commented Aug 25, 2021

var json = {
  "title": "question11",
  "pages": [
    {
      "name": "page2",
      "elements": [
        {
          "type": "matrixdropdown",
          "name": "question4",
          "title": "Please select the top 3 processes that you perceived as most difficult or troublesome.",
          "isRequired": true,
          "showHeader": false,
          "columns": [
            {
              "name": "1st Most Difficult",
              "isRequired": true
            },
            {
              "name": "2nd Most Difficult",
              "isRequired": true
            },
            {
              "name": "3rd Most Difficult",
              "isRequired": true
            }
          ],
          "choices": [
            "Process 1",
            "Process 2",
            "Process 3",
            "Process 4",
            "Process 5",
            "Process 6"
          ],
          "rows": [
            "Process"
          ]
        }
      ]
    }
  ]
};

We get the following visualization for matrix dropdown:
image
It shows a separate visualizer for each column

We need to support grouping data into a single chart:
image

tsv2013 pushed a commit that referenced this issue Aug 25, 2021
@tsv2013 tsv2013 self-assigned this Aug 25, 2021
tsv2013 pushed a commit that referenced this issue Aug 27, 2021
@tsv2013
Copy link
Member Author

tsv2013 commented Aug 27, 2021

Right now you can get the
image
for matrix dropdown with same choices for all columns

tsv2013 pushed a commit that referenced this issue Aug 27, 2021
…down into a single chart - added transpose data functionality
@tsv2013
Copy link
Member Author

tsv2013 commented Aug 27, 2021

image

visPanel.visualizers[0].matrixDropdownVisualizer.transposeData = true

@tsv2013 tsv2013 added this to the v1.8.64 milestone Aug 27, 2021
@ontanj
Copy link

ontanj commented Jan 22, 2022

I believe a bug was introduced here. It appears to me that when multiple rows are used, only the last row is presented in the visualizer. It looks like this feature has been developed with only one row in mind.

A ticket for this was also created at the support forum.

@tsv2013
Copy link
Member Author

tsv2013 commented Jan 24, 2022

Yes, it was implemented for very specific case where our customer has one row and several columns with the same choices.

Multi-row case is not supported at this moment. I leave this as a suggestion here and in in the support forum.

@tsv2013 tsv2013 added this to Incoming in Current sprint progress via automation Jan 25, 2022
@tsv2013 tsv2013 moved this from Incoming to TODO in Current sprint progress Jan 25, 2022
@tsv2013
Copy link
Member Author

tsv2013 commented Jan 25, 2022

I've restricted grouping for the matrices with the one row only via the above commit.

@tsv2013 tsv2013 moved this from TODO to To Do Sprint in Current sprint progress Jan 25, 2022
@tsv2013
Copy link
Member Author

tsv2013 commented Jan 26, 2022

Moved multirow implementation to backlog due to customer issue https://surveyjs.answerdesk.io/ticket/details/t8637/visualizing-matrix-bug was resolved via this quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants