test.js 210 B

12345678910
  1. label = {
  2. "show": true,
  3. "position":"right",
  4. "formatter": function(x) {
  5. if (x.value == '0')
  6. return '';
  7. return echarts.format.addCommas(x.value);
  8. }
  9. }
  10. console.log(eval(label))