title: How to hide a element in legend of a pie (Highchart)?
body: <p>I want to hide a element of legend under certain condition. The condition is given below. But it's not working. Is it achievable? How can I hide a specific element in legend? This snippet is from directive I'm using.</p>
  
  <pre><code>legend: {
      itemWidth: 200,
      itemMarginTop: 1,
      itemStyle: {
        color: '#000000',
        fontWeight: 'normal',
        fontSize: '90%'
      },
      formatter:function() {
          if(this.y != 0 &amp;&amp; !scope.item.quotaEnable) {
              return this.point.name;
          }
  
          if(this.y == 0 &amp;&amp; scope.item.quotaEnable &amp;&amp; this.point.name == 'Free Space') {
              return this.point.name;
          } else {
              return false;
          }
      }
  }
  </code></pre>