javascript - Flot Chart Tooltip showing last date value of x-axis, not the current value -


The values ​​of the y-axis and x-axis are fine, but when I hover over the point, it shows the last value The value of X, the value of y is fine. X has the date value as if I hover over March / 2014 , tooltip February 2014 / , or if I 05 / May / 2014 Tooltip says 04 / May / 2014 . The value on X-axis and Y-axis is fine, only tooltip is problematic.

  tooltipOpts: {content: function} {return "% s:% x |% Y"}, change: {x: -30, y: -50}}  

Is there a way that I can manipulate% x, raise a price or something else?

question solving. I also added the date format on the tooltep, just in XXIS.

  Tooltip: {content: function {} "return"% x |% y "}, xDateFormat: timeFormat, shift: {X: -30, y: -50}}  

In the time you enter a string such as var timeFormat = "% d /% b /% Y" .


Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -