Git Product home page Git Product logo

Comments (6)

martynasma avatar martynasma commented on July 17, 2024 1

It's definitely NOT by design :)

It looks like we still have a fat @todo in DateAxis code that looks for the closest data item to be used for a tooltip.

It just uses the one that is exactly the same timestamp as position of cursor, hence the issue you described.

We'll need to fix this.

Make sure you subscribed to notifications on this issue, so you know when it is implemented.

I also tried to look for some workaround you could use in the interim, but could not find one :(

Hope it's not superurgent for you.

from amcharts4.

arm1n avatar arm1n commented on July 17, 2024

Hey, thanks for your response and insights. Yes, I weren't able to find a client-side solution for this. But there's always the possibility to do data resampling and interpolation on a database level, although this is not something I'm striving for. So yes, for my current problem I can get around this relatively easy by not using the DateAxis, but the actual database rows as ValueAxis and showing the timestamp information in tooltip - saving me from writing awful SQL queries.

Looking forward to issue resolution and thanks again for this library 👍

from amcharts4.

martynasma avatar martynasma commented on July 17, 2024

Solved in 4.0.0-beta.28 (changelog).

from amcharts4.

nhosko avatar nhosko commented on July 17, 2024

Hello,

I have a similar issue when using a lot more data and with irregular date intervals - sometimes more than two values in the same minute (but never two on the same second). The tooltip is only shown for a couple of them.
Here is my code with sample data:
https://codepen.io/anon/pen/yGaXLB

@martynasma Is 4.0.0-beta.28 already included in amcharts.com/lib/4/core.js and amcharts.com/lib/4/charts.js

from amcharts4.

nhosko avatar nhosko commented on July 17, 2024

Another issue happening on data with irregular intervals is that the tooltips overlap when the mouse is not exactly on the lines where it "should be".
See this sample: https://codepen.io/anon/pen/roMzVY
Example not overlapping when cursor is on an exact point:
image

If I move the cursor a little bit, the tooltips will overlap:
image

Using Chrome Version 71.0.3578.98

from amcharts4.

martynasma avatar martynasma commented on July 17, 2024

Fixed in 4.0.11.

[4.0.11] - 2018-12-24

Added

  • "disabled" and "enabled" events added to Sprite.
  • cursorTooltipEnabled added to XYSeries If set to false cursor will not trigger bullet/item tooltips on series.

Changed

  • IMPORTANT (CODE-BREAKING CHANGES) For performance reasons we no longer create axis elements if they are disabled. For the same reasons we disabled by axis.ticks and axis.axisFills by default. Previously to enable them you had to set their strokeOpacity and/or fillOpacity to non-zero. This no longer will work. You will need to set disabled to false instead.
  • axisRanges now take their default values from dateAxis.axisRanges.template items (axisFill, grid, tick, label). Previously they were using the defaults from dateAxis.renderer.label etc. This was not comfortable and counter-intuitive.

Fixed

  • XYChartScrollbar's value axis was calculating min/max with a very big step.
  • Ember plugin was throwing console errors.
  • Fixed occasional zoom-in issue on Mobile Safari.
  • MapChart mouse wheel zoom direction was inverted on some browsers.
  • Cursor was not snapping correctly to DateAxis items.
  • Multiple floating columns on the same category were disappearing when scrolling the chart.
  • Date range fills were off when zooming on Gantt Chart.
  • Overlapping tooltips problem solved.
  • When snapToSeries was set for a tooltip, it was flickering a lot on slower browsers.
  • alignLabels = false on a PieSeries3D was causing labels to be positioned incorrectly.
  • PieSeries.dataFields.radiusValue was not accounting for chart.innerRadius.
  • Dynamically updating alignLabels for PieSeries did not work correctly.
  • Legend: itemValueText only worked if valueText was set.
  • ValueAxis setting maxZoomFactor = 1 was not working as expected.
  • Changing values for all data items sometimes was resulting in ValueAxis scale going into negative.
  • Some more tooltip and cursor related issues fixed.
  • Axis Fill did not properly fill the whole span when axis was scaled.

Full change log.

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

from amcharts4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.