简体   繁体   English

飞越图表时出现此错误:TypeError: Cannot read property 'lineWidth' of undefined

[英]I'm getting this error when fly over the chart: TypeError: Cannot read property 'lineWidth' of undefined

I'am using React 16 and I'm getting this error when fly over the chart: screen error I reinstalled the library but the error is still there.我正在使用 React 16,当我飞过图表时出现此错误:屏幕错误我重新安装了库,但错误仍然存在。 Pleas anyone know what it is?请问有人知道是什么吗?

TypeError: Cannot read property 'lineWidth' of undefined TypeError:无法读取未定义的属性“lineWidth”

在此处输入图像描述

My Component:我的组件:

import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts/highstock';

const options = {
   chart: {
       type: 'pie'
   },
   title: {
       text: 'Tableau de bord'
   },
   series: [
       {
       data: [1, 2, 1, 4, 3, 6]
       }
   ]
};
 
class WidgetIndicator extends Component {
   render() {
       return (
       <div className="widget-grid-content__indicator">
       <HighchartsReact
           highcharts={Highcharts}
           constructorType={'stockChart'}
           options={options}
       />
       </div>
       )
   };
}
 
export default WidgetIndicator;

That problem is a Highstock bug and it is reported here: https://github.com/highcharts/highcharts/issues/13868该问题是 Highstock 错误,此处报告: https://github.com/highcharts/highcharts/issues/13868

As a workaround disable splitted tooltip and set at least an empty configuration object for marker inactive state:作为一种解决方法,禁用拆分工具提示并为标记不活动 state 设置至少一个空配置 object:

    tooltip: {
        split: false
    },
    series: [{
        data: [1, 2, 1, 4, 3, 6],
        marker: {
            states: {
                inactive: {
                }
            }
        }
    }]

Live demo: http://jsfiddle.net/BlackLabel/09z8tcnq/现场演示: http://jsfiddle.net/BlackLabel/09z8tcnq/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TypeError:无法读取未定义的属性“公会”我正在编写欢迎代码,但我不断收到该错误 - TypeError: Cannot read property 'guild' of undefined I'm writing a welcome code but I keep getting that error 我收到错误Uncaught TypeError:无法读取未定义的属性&#39;drawBox&#39;,有人可以发现问题吗? - I'm getting the error Uncaught TypeError: Cannot read property 'drawBox' of undefined, Can anyone spot the issue? 我在 axios 补丁 api 中收到“Uncaught (in promise) TypeError: Cannot read property 'data' of undefined”错误 - I'm getting “Uncaught (in promise) TypeError: Cannot read property 'data' of undefined” error in axios patch api 我在我的 React 项目中收到此错误“TypeError: Cannot read property 'map' of undefined” - I'm getting this error “TypeError: Cannot read property 'map' of undefined” on my React project TypeError: Cannot read property 'map' of undefined 当我尝试 map 通过从父组件传递到子组件的道具时显示 - TypeError: Cannot read property 'map' of undefined is showing when I'm trying to map over the props passed from parent component to child component 类型错误:无法读取未定义的属性“then”。 当我尝试运行 updatefirst 函数时出现此错误 - TypeError: Cannot read property 'then' of undefined. Getting this error when I am trying to run updatefirst function 尝试 map 我的道具时,我收到无法读取未定义错误的“练习”属性 - I'm getting a Cannot read property of 'exercises' of undefined error when trying to map my props 为什么我收到 TypeError:在 Google 表格上运行应用程序脚本时无法读取未定义的属性“1”? - Why I'm getting TypeError: Cannot read property '1' of undefined while running an apps script on Google Sheets? 图表 JS 错误:未捕获的类型错误:无法读取未定义的属性“顶部” - Chart JS Error : Uncaught TypeError: Cannot read property 'top' of undefined Thingworx Gantt图表错误为“ TypeError:无法读取未定义的属性&#39;ActualDataRows&#39;” - Thingworx Gantt Chart error as “TypeError: Cannot read property 'ActualDataRows' of undefined”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM