Comments (6)
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.
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.
Solved in 4.0.0-beta.28 (changelog).
from amcharts4.
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.
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:
If I move the cursor a little bit, the tooltips will overlap:
Using Chrome Version 71.0.3578.98
from amcharts4.
Fixed in 4.0.11.
[4.0.11] - 2018-12-24
Added
"disabled"
and"enabled"
events added toSprite
.cursorTooltipEnabled
added toXYSeries
If set tofalse
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
andaxis.axisFills
by default. Previously to enable them you had to set theirstrokeOpacity
and/orfillOpacity
to non-zero. This no longer will work. You will need to setdisabled
tofalse
instead. axisRanges
now take their default values fromdateAxis.axisRanges.template
items (axisFill
,grid
,tick
,label
). Previously they were using the defaults fromdateAxis.renderer.label
etc. This was not comfortable and counter-intuitive.
Fixed
XYChartScrollbar
's value axis was calculatingmin
/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 aPieSeries3D
was causing labels to be positioned incorrectly.PieSeries.dataFields.radiusValue
was not accounting forchart.innerRadius
.- Dynamically updating
alignLabels
forPieSeries
did not work correctly. - Legend:
itemValueText
only worked ifvalueText
was set. ValueAxis
settingmaxZoomFactor = 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.
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)
- Unable set label for radar chart as per my requirements HOT 2
- How to ensure consistent PNG export appearance regardless of browser zoom? HOT 5
- Amchart4 is ignoring null-category in data HOT 3
- minZoomCount for categoryAxis on yAxis HOT 2
- Pie of a Pie (problems with the lines) HOT 2
- How to show text in chart area without overlapping with the bars ? HOT 2
- Local formatter for ValueAxis HOT 2
- [Question] Multiple CandlestickSeries is shifted relative to each other HOT 2
- Wrong cursor position when viewbox and real width/height not matching HOT 3
- Map with clustered points and lines HOT 2
- Center wrapped legend items HOT 2
- How to access legend from another Element HOT 2
- force directed graph : label on edge and graph going out of bounds HOT 3
- Need to add custom percentages in Tooltip instead of default CalculatePercentage in amcharts 4 HOT 4
- Columnes cropped in the beginning HOT 6
- Tooltip doesnt' show on the chart HOT 4
- Screen readers are announcing different data from the visible data on the Funnel chart. HOT 3
- Mutli Date Axis with columnSeries HOT 1
- Congressional map
- Heatmap chart with huge data set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amcharts4.