helgasoft commented on issue #19306:
URL: https://github.com/apache/echarts/issues/19306#issuecomment-1816902241
Keep in mind that when xAxis has _data_, it makes it automatically type
'**category**', regardless of the explicit type set ('time').
That's why my example did not include _data_.
I think you will like this solution:
```
...
xAxis: [
{ type: 'time', gridIndex: 0 },
{ type: 'time', gridIndex: 1 },
{ type: 'time', gridIndex: 2 },
{ type: 'time', gridIndex: 3 }
],
tooltip:{
trigger: 'axis',
formatter: (x) => {
txt= x[0].value[0].toLocaleString()+'<br>';
x.map(p => txt += p.value[1] +' '+ p.marker +' '+ p.value[2] +'<br>');
return txt;
},
axisPointer: { link: [{ xAxisIndex: 'all' }]}
},
series: [
{ type: 'scatter', symbolSize:2, large:true, ...},
{ type: 'scatter', symbolSize:2, large:true, ...}, ...
]
```
Switching series from heatmap to **scatter** makes them much more responsive.
NB: ECharts [editor](https://echarts.apache.org/examples/en/editor.html)
works much faster than codesandbox.io.
Please copy the code there to see the difference.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]