无法读取未定义的属性(读取'schemeCategory10')

问题描述 投票:0回答:0

看起来 C3.js 不再受支持?

我在插件上遇到问题,不确定是什么原因造成的(在它工作之前不确定是否有导致我出现问题的更新?)。

我还在 Git 上发布了一个问题https://github.com/c3js/c3/issues/2877

  • C3版本:v0.7.20
  • D3版本:未使用
  • 浏览器:Chrome
  • 操作系统:OSX

我们工作中包含的其他插件:

  • //= 需要 seo/c3.min
  • //= 需要 seo/jquery.dataTables
  • //= 需要 moment.min
  • //= 需要 seo/daterangepicker.min

出现错误的示例代码:

c3.generate({
  bindto: '#chart',
  data: {
    x:  'x',
    columns: [
      data['dates'],
      data['impressions'],
      data['clicks'],
      data['ctr'],
      data['positions']
    ]
  },
  axis: {
    x: {
      type: 'timeseries',
      tick: {
          format: '%Y-%m-%d'
      }
    }
  },
  tooltip: {
    format: {
      value: function (value, ratio, id) {
          .....
      }
    }
  }
});
c3.js
© www.soinside.com 2019 - 2024. All rights reserved.