entronad / flutter_echarts

A Flutter widget to use Apache ECharts in a reactive way.

Home Page:https://pub.dev/packages/flutter_echarts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Echarts IOS problem

Jarobec opened this issue · comments

I used effectScatter from Echarts. However there are appeared problems on the IOS. After render charts, effectScatter flashing right work. But after 5 minutes, it will be crashed. #@entronad

Echarts(
reloadAfterInit: true,
captureAllGestures: true,
option: '''{
animation: false,
backgroundColor: 'rgb(28, 33, 48, 1)',
grid: [
{
left: '13%',
right: '2%',
height: '65%',
top: '5%'
}
],
xAxis: {
type: 'time',
scale: true,
boundaryGap : true,
splitNumber: 5,
axisPointer: {
z: 100
},
max: function(value) {
return new Date(value.max + 360000);
},
min: function(value) {
return new Date(value.min - 3
60000);
}
},
yAxis: {
show: true,
scale: true,
position: 'left',
type: 'value',
splitNumber: 3,
splitLine: {show: false},
splitArea: {show: false},
axisLabel: {
inside: false,
verticalAlign: 'bottom',
color: 'rgb(255, 255, 255, 1)'
}
},
series: [
{
type: 'effectScatter',
data : [['2021-08-31 13:00', 10, 11, 12, 9, 100], ['2021-08-31 13:05', 11, 5, 13, 10, 200]],
itemStyle: {
color: 'rgb(108, 221, 97, 1)'
},
}
]
}''',
),

Since based on webview, this library has some inextirpable unstability and performance issues. We recommand the Flutter charting library Graphic as alternative.