5

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?

giovanMusk
  • 165
  • 2
  • 9

2 Answers2

6

The fix was to set an option in the chart

"panEventsEnabled": false

giovanMusk
  • 165
  • 2
  • 9
1

For line graphs I had to use a combination of the two below:

"panEventsEnabled": false

From http://docs.amcharts.com/javascriptstockchart/PanelsSettings#panEventsEnabled

and

"pan":true

From http://docs.amcharts.com/3/javascriptcharts/ChartCursor#pan

Hope it helps!

Ben Taliadoros
  • 7,003
  • 15
  • 60
  • 97