chartjs 对比图 前后对比数据丢失

47 阅读1分钟

source 不设的情况下 默认 为 auto 会出现丢点的问题 www.chartjs.org/docs/latest…

options:{

scales:{

ticks: {
          source: 'data',
          }
          }
          }

matric-map source 不设的情况下会对不齐

x: {
   
    offset: true,//这两个需要
    ticks: {
      source: 'data', //这两个需要
      padding: 0,
      maxRotation: 0,
    },