On mobile when a graph is tapped, it duplicates


« 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 Jen on 29th July 2014
On a mobile app, when the line graph is tapped/touched it duplicates itself a few pixels to the left

So I am left with two overlapping identical graphs

Would anyone know what the possible source of error might be?

Thanks!
Posted by Richard on 29th July 2014
Maybe you're drawing the chart without clearing the canvas first - try using RGraph.clear(canvas) where canvas isz the canvas tag as returned by document.getElemenetById().

You could event hook it up to the onbeforedraw RGraph event:

myObject.on('beforedraw', function (obj)
{
     RGraph.clear(obj.canvas);
})





Richard
Posted by Jen on 30th July 2014
I took to basically remake the whole layout with the elements and in the end it was an 'overflow:hidden;' that caused that problem

Thanks for your help though!

Really amazing work you're doing with this (:

Add a reply

 




« Back to message list
RGraph on social media