javascript - Can't scroll over amcharts chart on mobile - Stack Overflow

So I have a chart that spans 100% when on mobile but when trying to scroll the screen by touching the g

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
Add a ment  | 

2 Answers 2

Reset to default 6

The 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信