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

Show traffic light on count 0 (handle no results) #2

Open
joydragon opened this issue Sep 28, 2016 · 2 comments
Open

Show traffic light on count 0 (handle no results) #2

joydragon opened this issue Sep 28, 2016 · 2 comments

Comments

@joydragon
Copy link

If you need to show green or red light on count 0 you can add the following code to the parameter definition:

handleNoResults: true

That leaves the code like this:

params: {
        defaults: {
          width: 50,
          redThreshold: 20,
          greenThreshold: 80,
          redAndGreenOnly: false,
          invertScale: false,
          rotateHorizontaly: false,
          handleNoResults: true
        },
        editor: require('plugins/traffic_light_vis/traffic_light_vis_params.html')
      }
@bondib
Copy link
Owner

bondib commented Sep 28, 2016

Do you want me to add documentation?
(sorry - a bit out of focus on this project...)

@joydragon
Copy link
Author

It would be nice to have that as on option on the visualization itself (like the invert scale or rotate), or to set it as a default for this visualization so every time it gets 0 you can handle it accordingly

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

2 participants