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) {
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: {