title: Hiding labels for CanvasJS chart?
body: <p>I have a Canvas JS chart and if the values are 0, I'd like to hide the labels. 2 of my datapoints are non-zero. My JavaScript is:</p>
  
  <pre><code>           var chart = new CanvasJS.Chart("chartContainer",
              {
                  title:{
                      text: ""
                  },
                  legend: {
                      maxWidth: 350,
                      itemWidth: 120
                  },
                  data: [
                  {
                      type: "pie",
                      showInLegend: true,
                      toolTipContent: "${y} - #percent %",
                      dataPoints: [
                          { y: debt, indexLabel: "Debt Payments" },
                          { y: housing, indexLabel: "Housing" },
                          { y: utilities, indexLabel: "Utilities" },
                          { y: foodandsupplies, indexLabel: "Food and Supplies"},
                          { y: transportation, indexLabel: "Transportation" },
                          { y: health, indexLabel: "Health"},
                          { y: otherDebts, indexLabel: "Other payments"}
                      ]
                  }
                  ]
              });
              chart.render();
  </code></pre>
  
  <p>The outcome of the JavaScript is:</p>
  
  <p><a href="https://i.stack.imgur.com/0FOPy.png" rel="nofollow noreferrer">Pie Chart</a></p>
  
  <p>I would appreciate any help with this. Thanks!</p>