Open daniilc-magnumwm opened 6 years ago
Well, I guess it is not the expected behaviour of 'groupToPeriods'.
I specified the maxSeries
to 0, but still when the slider reaches the beginning of the new day the data for the last day can't be reached with the cursor.
@martynasma @amcharts Any thoughts?
Hey,
Try setting extendToFullPeriod
to true
.
@martynasma but the default value is true
I have tried it before, but it didn't help me either.
OK, the next thing we can try is to use:
"glueToTheEnd": true
http://docs.amcharts.com/3/javascriptstockchart/AmStockChart#glueToTheEnd
The same.
Please note that the problem exist only for the dates of the beginning of the day, like Tue Jul 24 2018 03:54:25
For Tue Jul 24 2018 18:54:25
it is fine.
New comment from Zendesk by Martynas Majeris on ticket 38519. (replying here will automatically notify amCharts support agent)
Hm, your data seems to be uniform without any hours attached to it.
OK, one more thing to try (in connection to glueToTheEnd
):
AmCharts.useUTC = true;
This should go before you open instantiate the chart.
Yours sincerely,
Martynas Majeris amCharts
P.S. have you seen upcoming amCharts 4 yet? https://www.amcharts.com/v4
@amcharts still the same
Same problem exist for the start of the period.
That actually weird.
I found out that the start period depends on the the hours.
For example in the screenshot below the slider startDate
is Tue Jun 13 2017 12:16:00 GMT+0800
The periods starts from the next day (Wednesday), although Tuesday is accessible for navigation, but its percentage value are non-zero.
@amcharts @martynasma Any thoughts? Have you consider adding step parameter to the slider? This parameter will be related to the the zooming scale. I'm currently working on my own one. It will just emit zooming event when reach a new value.
I'm sorry, no. We need more time to figure this. Issues like that are extremely tricky.
Thank you for your patience.
No problem take your time. I'll try to find the solution on my own as well.
When I zoom my chart sometimes the data in the last day is not accessible for
cursor
. I'm not sure whether it is a bug or an expected behaviour.It is mostly the case when the
endDate
hasn't reached the middle of the day. For example in the graph below when I listen to thezoomed
event I observe the following result ofevent.endDate
-Tue Jul 24 2018 03:54:25
But if I drag the slide a bit - the data for this date become accessible. I understand that the data is rendered in the graph, but I'm not able to reach it. For my task it is crucial to have the same data in the
date input field
and the last accessible in the chart.Tue Jul 24 2018 22:00:00
( 22:00:00 for every day, passing all other dates)I'll appreciate any advice
The reproduction code is here