Tooltips are not working.. Help me..

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Raj on 29th May 2013
Hi, am taking rgraph spline lines, in that values are getting dynamically, graph is working , but tooltips are not working. check it once. anybody give suggestion..
This is my script,
function(data) {
  
   var jsonObj = $.parseJSON(data);
   
   $('#myCanvas').css("width", "700px");
   $('#png_link').show();
   var line = new RGraph.Line('myCanvas', jsonObj[2]);
   
   line.Set('chart.curvy', true);
   line.Set('chart.curvy.tickmarks', true);
   line.Set('chart.curvy.tickmarks.fill', null);
   line.Set('chart.curvy.tickmarks.stroke', '#aaa');
   line.Set('chart.curvy.tickmarks.stroke.linewidth', 2);
   line.Set('chart.curvy.tickmarks.size', 5);
   line.Set('chart.linewidth', 3);
   line.Set('chart.hmargin', 5);
   line.Set('chart.labels', jsonObj[0]);
   line.Set('chart.text.angle', 45);
   line.Set('chart.gutter.left', 40);
   line.Set('chart.gutter.bottom', 50);
   line.Set('chart.tooltips', jsonObj[2]);
                 line.Set('chart.tooltips.event', 'onmousemove');
   line.Set('chart.tickmarks', 'circle');
   line.Set('chart.key', jsonObj[1]);
   line.Set('chart.key.position.gutter.boxed', false);
   line.Set('chart.key.position', 'gutter');
   RGraph.Effects.Line.jQuery.Trace(line);
   $('#totEnergy').html(jsonObj[4][0]);
          $('#perEnergy').html(jsonObj[4][1]);
   $('#totCO2').html(jsonObj[4][2]);

}



Am getting jsonObject value is:
[["05\/02\/13","05\/03\/13","05\/04\/13","05\/05\/13","05\/06\/13","05\/07\/13","05\/08\/13","05\/09\/13","05\/10\/13","05\/11\/13","05\/12\/13","05\/13\/13","05\/14\/13","05\/15\/13","05\/16\/13","05\/17\/13","05\/18\/13","05\/19\/13","05\/20\/13","05\/21\/13"],["In a Box","East Coast"],[["1.00",0,0,0,0,0,0,"5.00",0,0,0,0,0,0,0,0,0,0,0,0],["2.00","2.00",0,"6.00",0,0,0,0,0,0,"3.00","4.00",0,0,0,0,0,0,0,0]],[["1.00 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","5.00 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh"],["2.00 kWh","2.00 kWh","0.0 kWh","6.00 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","3.00 kWh","4.00 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh","0.0 kWh"]],[23,100,12.05]]
Posted by RGraph support on 29th May 2013
Hi there,

Try:

a. Boiling your chart down to the bare minimum.
b. Putting the page online.


Richard, RGraph Support

Add a reply




« Back to message list