The Line chart .hidden() function is not working

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 Weezy on 4th July 2016
Hello,

When I use line hidden option this error message display "TypeError: line.hidden is not a function". I don't know why. The issue still persists after I checked all the loading scripts
Posted by Richard on 4th July 2016
Hi there,

Are you using an older version that doesn't have the function? Try searching your RGraph.line.js file for the text:

.hidden =

To see if it's there.






Richard
Posted by Weezy on 5th July 2016
In RGraph.line.js file I found this:

   this.hidden = function (index)
         {
             return !prop['chart.line.visible'][index];
         };
Posted by Richard on 5th July 2016
Hi,

Well that's the function. Try doing this:

$p(obj.hidden);

to see what the hidden property is. Maybe it's being overwritten.






Richard
Posted by Weezy on 5th July 2016
How I can try do $p(obj.hidden);?
Posted by Richard on 5th July 2016
Hi there,

$p() is just a function that alert()s whatever you give it (and its structure). Put it somewhere after you create the object but before you try to use the .hidden() function.





Richard
Posted by Weezy on 5th July 2016
$p(line.hidden) return this message "false (boolean)"
Posted by Richard on 5th July 2016
Hi there,

Well I don't know why that is - no where in the RGraph source code is there anything that sets the .hidden property.



Richard

Add a reply




« Back to message list