So I have a chart that spans 100% when on mobile but when trying to scroll the screen by touching the graph and swiping it simply triggers an event instead of scrolling. For instance if I try to scroll over a pie chart it will bring up the bubble of the pie slice.
Is there an event I could disable to alleviate this issue?
So I have a chart that spans 100% when on mobile but when trying to scroll the screen by touching the graph and swiping it simply triggers an event instead of scrolling. For instance if I try to scroll over a pie chart it will bring up the bubble of the pie slice.
Is there an event I could disable to alleviate this issue?
Share Improve this question asked Nov 14, 2014 at 21:17 giovanMuskgiovanMusk 1832 silver badges9 bronze badges 3- I guess I should mention this is with the amcharts js plugin – giovanMusk Commented Nov 14, 2014 at 21:23
- Did you find any solution to this ? I am facing the same issue. – Abhishek Bose Commented Mar 2, 2015 at 10:33
- Just posted the answer – giovanMusk Commented Mar 3, 2015 at 13:51
2 Answers
Reset to default 6The fix was to set an option in the chart
"panEventsEnabled": false
For line graphs I had to use a bination of the two below:
"panEventsEnabled": false
From http://docs.amcharts./javascriptstockchart/PanelsSettings#panEventsEnabled
and
"pan":true
From http://docs.amcharts./3/javascriptcharts/ChartCursor#pan
Hope it helps!
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744401612a4572415.html
评论列表(0条)