t.substring不是ApexCharts中的函数

问题描述

给所有人粥,我在ApexCharts中遇到了一个错误。谁知道这是什么问题?谢谢!

我的代码

// Option Chart
var options = {
          series: 
          [ 
            {
              name: 'Operating',data: [1785,1661,1663,1653,1882,1725,6153,1153,1661]
            },{
              name: 'Stopping',data: [4072,248,2534,8533,0]
            },{
              name: 'Error',data: [0,{
              name: 'No Sign',0]
            }
          ],chart: {
          type: 'bar',height: heightChart,stacked: true,stackType: '100%'
          },responsive: [{
            breakpoint: 480,options: {
              legend: {
                position: 'bottom',offsetX: -10,offsetY: 0
              }
            }
          }],xaxis: {
            labels: {
              style: {
                colors: [],fontSize: '15px',fontFamily: 'Helvetica,Arial,sans-serif',fontWeight: 400,cssClass: 'apexcharts-xaxis-label',}
            },},yaxis: {
            labels: {
              style: {
                colors: [],};
      var chart = new ApexCharts(document.querySelector("#chart"),options);
      chart.render();

这是错误

enter image description here

我试图找出有关此错误的信息,主要是由于数据错误。但是我的数据是正确的。当我们将0替换为1时,此错误消失。 在创建绘图选项之后,图形生成了一个错误:

plotOptions: {
            bar: {
              columnWidth: '60%',colors: {
                ranges: [{
                    from: 0,to: 0,color: ['#0000']
                }],backgroundBarColors: [],backgroundBarOpacity: 1,backgroundBarRadius: 0,}
          },

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)