Merge pull request #837 from MiguelMedeiros/fix-circle-dots-mempool-charts

Remove circle symbols when hovering the series.
This commit is contained in:
softsimon 2021-09-29 17:15:18 +04:00 committed by GitHub
commit 2e0845847d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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