mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Fix doughnut tooltip and legend
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -390,7 +390,12 @@ $("#querytime").on("apply.daterangepicker", function (ev, picker) {
|
||||
});
|
||||
|
||||
$("#queryOverTimeChart").click(function (evt) {
|
||||
var activePoints = timeLineChart.getElementsAtEventForMode(evt, 'nearest', { intersect: true }, false);
|
||||
var activePoints = timeLineChart.getElementsAtEventForMode(
|
||||
evt,
|
||||
"nearest",
|
||||
{ intersect: true },
|
||||
false
|
||||
);
|
||||
if (activePoints.length > 0) {
|
||||
//get the internal index in the chart
|
||||
var clickedElementindex = activePoints[0].index;
|
||||
|
||||
Reference in New Issue
Block a user