Filter list shows binary flag as histogram only

I have a binary property (it needs to be binary for use elsewhere). I want to use this property in a filter list in Workshop where the user can select either a 0 or a 1. However, when I bring this filter list in, the only display option seems to be a histogram, where I just want a simple selector. To do this I need to create a new property set as string instead of integer - am I right?

There is no easy way to do this but if you go to the metadata tab of your widget and look through the Raw widget configuration you will see a configuration for your property that looks like

"component": {
                "type": "histogram",
                "histogram": {
                  "chartHeight": "DEFAULT"
                }
              },

switch it out for

"component": {
                "type": "listogram",
                "listogram": {
                  "initialSizeToShow": 5,
                  "sortOrder": "DESCENDING",
                  "sortBy": "COUNT",
                  "showBars": true
                }
              },

and you should be good to go :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.