What do you do if you're seeing value boxes for values that are 0

You can use our rules attribute, which works like a function, to apply specific properties to each index of the plot. In this case we are checking at each index the value against 0, if it is zero, hide that valueBox.

plot:{
  valueBox:{
    rules:[
      {
        rule:'%v === 0',
        visible:false
      }
    ]
  }
}

 

All Documentation referenced here:

http://www.zingchart.com/docs/basic-elements/create-javascript-rules/

http://www.zingchart.com/docs/json-attributes-syntax/loader/rules-abstract/

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.