Fixed problems with show data contextual in graphs. Tiquet: #3057

This commit is contained in:
m-lopez-f 2015-12-15 13:23:06 +01:00
parent 786d36ef79
commit 2b294df108
1 changed files with 7 additions and 7 deletions

View File

@ -467,8 +467,8 @@ var previousPoint = null, previousLabel = null;
$.fn.HUseTooltip = function () {
$(this).bind("plothover", function (event, pos, item) {
if (item) {
if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) {
previousPoint = item.dataIndex;
if ((previousLabel != item.series.label) || (previousPoint != item.seriesIndex)) {
previousPoint = item.seriesIndex;
previousLabel = item.series.label;
$("#tooltip").remove();
@ -491,8 +491,8 @@ $.fn.HUseTooltip = function () {
$.fn.VUseTooltip = function () {
$(this).bind("plothover", function (event, pos, item) {
if (item) {
if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) {
previousPoint = item.dataIndex;
if ((previousLabel != item.series.label) || (previousPoint != item.seriesIndex)) {
previousPoint = item.seriesIndex;
previousLabel = item.series.label;
$("#tooltip").remove();