2

Can we enable touch support for the jqPlot crosshair cursor from "jqplot.cursor.js"?

An example is here: http://www.jqplot.com/deploy/dist/examples/customHighlighterCursorTrendline.html

My goal is to enable the crosshair for touch devices.

Possible workaround: Using html5 touch events to get the finger position?

gco
  • 1,670
  • 7
  • 24
  • 46
  • By touch support - do you mean dragging? The crosshair is merely the appearance of the cursor when you hover over the graph, which is clearly not possible since there is no cursor on a touch display. – ılǝ Apr 15 '14 at 05:06
  • Yes, I meant dragging. For example, I need to enable zooming into the plot on a touch device. – gco Apr 15 '14 at 09:08

1 Answers1

0

The only thing is working in touch enabled device is tool-tip on tapping the point plotted on graph.
jqplot has not any plug-in for zooming in touch enabled device.

The thing you can do is check if device is touch enabled ?
Set limit while device is touch enabled and display simple graph with latest values only.

Community
  • 1
  • 1
Jaykishan
  • 1,409
  • 1
  • 15
  • 26