fix chart bug
This commit is contained in:
parent
535fe083e5
commit
1083a17386
|
@ -35,7 +35,9 @@
|
||||||
this.initChart();
|
this.initChart();
|
||||||
if (this.autoResize) {
|
if (this.autoResize) {
|
||||||
this.__resizeHanlder = debounce(() => {
|
this.__resizeHanlder = debounce(() => {
|
||||||
this.chart.resize()
|
if (this.chart) {
|
||||||
|
this.chart.resize()
|
||||||
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
window.addEventListener('resize', this.__resizeHanlder)
|
window.addEventListener('resize', this.__resizeHanlder)
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
legend: {
|
legend: {
|
||||||
x: 'center',
|
x: 'center',
|
||||||
y: 'bottom',
|
y: 'bottom',
|
||||||
data: ['industries', 'technology', 'gold', 'forex', 'forecasts', 'markets']
|
data: ['industries', 'technology', 'forex', 'gold', 'forecasts', 'markets']
|
||||||
},
|
},
|
||||||
calculable: true,
|
calculable: true,
|
||||||
series: [
|
series: [
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
{ value: 240, name: 'technology' },
|
{ value: 240, name: 'technology' },
|
||||||
{ value: 149, name: 'forex' },
|
{ value: 149, name: 'forex' },
|
||||||
{ value: 100, name: 'gold' },
|
{ value: 100, name: 'gold' },
|
||||||
{ value: 59, name: 'forecastsx' },
|
{ value: 59, name: 'forecasts' },
|
||||||
{ value: 49, name: 'markets' }
|
{ value: 49, name: 'markets' }
|
||||||
],
|
],
|
||||||
animationEasing: 'cubicInOut',
|
animationEasing: 'cubicInOut',
|
||||||
|
|
Loading…
Reference in New Issue