[英]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.