function formatNum(value) {
  if(!value&&value!==0) return 0;

  let str = value.toString();
  let reg = str.indexOf(".") > -1 ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(?:\d{3})+$)/g;
  return str.replace(reg,"$1,");
}



在tooltip下面的
formatter:function(data){}

大括号里面写,

具体分析和讲解,请参考原作者
https://www.cnblogs.com/nuonuo-D/p/10929500.html

相关文章:

  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-11-01
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案