Skip to content

Commit 635bf7c

Browse files
committed
fix: show the tooltips when hover on the bounding cell
1 parent 01e8653 commit 635bf7c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

plugins/times-of-day/frontend/public/javascripts/countly.views.component.common.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
tooltip: {
3636
position: 'top',
3737
trigger: 'item',
38+
borderColor: 'rgb(57, 192, 200)',
3839
formatter: function(params) {
3940
return '<div class="bu-is-flex times-of-day__scatter-chart-tooltip"> \n' +
4041
'<div> \n' +
41-
'<div class="times-of-day__scatter-chart-bar bu-mr-2" style="background-color: ' + params.color + ';"></div> \n' +
42+
'<div class="times-of-day__scatter-chart-bar bu-mr-2" style="background-color: rgb(57, 192, 200);"></div> \n' +
4243
'</div> \n' +
4344
'<div> \n' +
4445
'<div class="times-of-day__scatter-chart-tooltip-text">' + CV.i18n('times-of-day.total-users') + '</div>\n' +
@@ -75,6 +76,23 @@
7576
}
7677
},
7778
series: [{
79+
name: CV.i18n('times-of-day.title'),
80+
type: "scatter",
81+
symbol: "square",
82+
symbolSize: function() {
83+
return 50;
84+
},
85+
data: this.series,
86+
itemStyle: {
87+
"color": "#ffffff",
88+
opacity: 0.0
89+
},
90+
emphasis: {
91+
"disabled": true,
92+
"focus": 'none'
93+
}
94+
},
95+
{
7896
name: CV.i18n('times-of-day.title'),
7997
type: "scatter",
8098
symbolSize: function(val) {

0 commit comments

Comments
 (0)