Remove circle symbols when hovering the series.

Fix selected index when hovering the series.
This commit is contained in:
Miguel Medeiros 2021-09-28 20:13:08 -03:00
parent d0a8509194
commit 8aae5c1c9c
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -66,8 +66,10 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
}
onChartReady(myChart: any) {
myChart.on('mouseover', 'series', (serie: any) => {
this.hoverIndexSerie = serie.seriesIndex;
myChart.getZr().on('mousemove', e => {
if (e.target !== undefined) {
this.hoverIndexSerie = e.target.parent.parent.__ecComponentInfo.index;
}
});
}
@ -109,7 +111,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
return {
name: this.feeLevelsOrdered[index],
type: 'line',
stack: 'total',
stack: 'fees',
smooth: false,
markPoint: {
symbol: 'rect',
@ -118,8 +120,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
width: 0,
opacity: 0,
},
symbolSize: (this.template === 'advanced') ? 10 : 10,
showSymbol: false,
symbol: 'none',
emphasis: {
focus: 'none',
areaStyle: {