amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
353 stars 94 forks source link

GaplessDateAxis candlestick series tooltips displaying offset time #286

Closed cwooldridge1 closed 2 years ago

cwooldridge1 commented 2 years ago

I am using the new gapless date axis on a candlestick series chart. The issue that is occurring is that the tooltip date is being displayed as a slight offset. For example, say the base intervals time unit is a minute and the count is 5 (in other words each candle is 5 minutes). This displayed data on the tooltip for the point if say the data point was 14:00 the tooltip would display 14:02 and the data point of 13:55 would display 13:57. I am not sure how this weird offet is occuring. I have looked at this issue in amcharts 4 https://github.com/amcharts/amcharts4/issues/2919 and its related and nothing seems to be working in amcharts 5.

martynasma commented 2 years ago

Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?

cwooldridge1 commented 2 years ago

After I went to the efforts of making a code pen for it the code pen displayed it without the bug. I then figured I would try to NPM install it again (despite me re-updating only a few weeks ago) and the bug was then fixed after updating. However, I still do have one issue. Arbitrarily the date axis will disappear when zooming in/out.

image

You'll notice in the above photo that there is no date axis. However, if you zoom in or out a bit more it will appear again.

image

Here is the link to the code pen for it: https://codepen.io/cwooldridge1/pen/eYeexee?editors=1011. Youll notice this when you start to mess with zooming

NOTE: adjusting grid density did not fix this issue

martynasma commented 2 years ago

Yeah, somethings off. We'll need to look into it.

Will keep you posted.

martynasma commented 2 years ago

Fixed in 5.1.5.

[5.1.5] - 2022-02-22

Added

Changed

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.