- Dygraph.addEvent(g.canvas_, '_mousemove', function(e) {
- var y = Dygraph.pageY(e) - Dygraph.findPosY(g.canvas_);
- console.log(y, g.toDataYCoord(y));
- });
+ function Data2() {
+ return "X,A\n" +
+ "1,0.000001\n"+
+ "2,10\n"+
+ "3,100\n"+
+ "4,250\n"+
+ "5,1000\n"+
+ "6,30\n"+
+ "7,80\n"+
+ "8,100\n"+
+ "9,500\n"+
+ "";
+ }
+ var g2 = new Dygraph(document.getElementById("div_g2"),
+ Data2, { logscale : true });