杨同学* 2021-12-29 16:23 采纳率: 88.9%
浏览 286
已结题

echarts 超出警戒线变色

            visualMap:{
              pieces:[
                {
                  lte:threshold.echartsCode[i+4].toString(),
                  color:"red"
                },
                {
                  gt:threshold.echartsCode[i+4],
                  lte:threshold.echartsCode[i],
                  color:"#5470c6"
                },
                {
                  gt:threshold.echartsCode[i],
                  color:"red"
                },
              ],
              left:"center",
              top: "25",
              orient: "horizontal"
            },

这个gt和lte只能是整数吗,为什么我的是小数他给我四舍五入转为整数了。

  • 写回答

1条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 1月7日
  • 已采纳回答 12月30日
  • 创建了问题 12月29日