mirror of
https://github.com/mempool/mempool.git
synced 2025-04-09 12:30:13 +02:00
Remove circle symbols when hovering the series.
Fix selected index when hovering the series.
This commit is contained in:
parent
d0a8509194
commit
8aae5c1c9c
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user