The Line chart .hidden() function is not working

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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

PLEASE READ:

If RGraph has helped you please give your feedback - thanks! You can give your feedback or leave a testimonial by adding a forum post or clicking on the speech bubble icon at the very top right.

But most of all: Please link to the RGraph website (get information on how to do it by clicking on the chain icon at the top right of the page)
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

PLEASE READ:

If RGraph has helped you please give your feedback - thanks! You can give your feedback or leave a testimonial by adding a forum post or clicking on the speech bubble icon at the very top right.

But most of all: Please link to the RGraph website! (get information by clicking on the chain icon at the top right of the page)
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

PLEASE READ:

If RGraph has helped you please give your feedback - thanks! You can give your feedback or leave a testimonial by adding a forum post or clicking on the speech bubble icon at the very top right.

But most of all: Please link to the RGraph website (get information on how to do it by clicking on the chain icon at the top right of the page)
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

PLEASE READ:

If RGraph has helped you please give your feedback - thanks! You can give your feedback or leave a testimonial by adding a forum post or clicking on the speech bubble icon at the very top right.

But most of all: Please link to the RGraph website (get information on how to do it by clicking on the chain icon at the top right of the page)

Add a reply




« Back to message list