flutter_echarts icon indicating copy to clipboard operation
flutter_echarts copied to clipboard

After setting enterable: true, tooltip is not hide in touch device using flutter sdk

Open fitterfly-parth opened this issue 3 years ago • 0 comments

tooltip: { show: true, trigger: 'axis', alwaysShowContent: false, triggerOn: 'click', enterable: true, appendToBody: true, formatter: function (params) { let rez = ''; params.forEach((item) => { if (item.data[2] === '' || item.data[3] === '') { var currentDateTime = new Date(item.data[0]); var hrs = currentDateTime.getHours(); var mnts = currentDateTime.getMinutes(); var AMPM = hrs >= 12 ? 'PM' : 'AM'; hrs = hrs % 12; hrs = hrs ? hrs : 12; mnts = mnts < 10 ? '0' + mnts : mnts; var result = hrs + ':' + mnts + ' ' + AMPM; var s = '

' + '
' + item.data[1] + '
' + '
' + result + '
' + '
' + '
'; rez += s; } else { var jsonData = {}; jsonData['activity_id'] = item.data[2]; jsonData['activity_type'] = item.data[3]; jsonData['scan_time'] = item.data[0]; Messager.postMessage(JSON.stringify(jsonData)); } }); return rez; } },

extraScript: ''' chart.on('datazoom', () => { chart.dispatchAction({ type: 'hideTip', }); }); ''',

fitterfly-parth avatar Sep 02 '22 08:09 fitterfly-parth