-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip on DateAxis #1581
Comments
Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test? |
@martynasma Here is the reference code noticed that it happens if I set I have set it to false for xAxis0 is false and xAxis1 to true. |
Try enabling snapping of cursor to series: var cursor = chart.set(
"cursor",
am5xy.XYCursor.new(root, {
behavior: "zoomX",
snapToSeries: chart.series.values
})
); |
@martynasma I'm afraid it does not work for me. if used it mismatch persists while showing only the points data tooltip on which I hover. |
Try adding https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/#Irregularly_spaced_data |
@martynasma nope not working |
Can you actually reproduce it in the modified CodePen? https://codepen.io/team/amcharts/pen/wvLBJmw/afc1f1d0e704db98df5613fcb38a8651 |
@martynasma It occurs in the given codepen url if you hover over any column the dates shown are not matching |
Just add |
This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added. |
I am working on XYChart and have enabled the tooltip for the date axis as seen in the below-pasted image
there seems to be a mismatch in the dates shown on the tool tip when I hover over any of the data bars.
as per my expectation both should show the same dates which is not happening
this is noticed when I have one a record of every alternate hours and when zoomed in to data it shows proper
![image](https://private-user-images.githubusercontent.com/44560611/341965679-ab45103d-f73c-4188-a6be-eec195cab01a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMjIzOTAsIm5iZiI6MTcyNDEyMjA5MCwicGF0aCI6Ii80NDU2MDYxMS8zNDE5NjU2NzktYWI0NTEwM2QtZjczYy00MTg4LWE2YmUtZWVjMTk1Y2FiMDFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDAyNDgxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlMDNmNjVhN2M0OTgxNWVlYzhiNjhiOGQ0MTkzMmRjY2YyMDU1NzRjZTA1ZjFmYTQwMGE4M2NjMmI1MThlNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dtlZlerofSDUPH1c9DKIcqB4_eemj4alpiFs9kookQ0)
and in the above image if you see the labels happen to overlap each other
The text was updated successfully, but these errors were encountered: