Getting errors in Firebug


« 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 Priyanka on 17th October 2013
Hi,

I am getting the errors in the firebug,hw cn i solve them.
I am giving separate id's to the canvas.
Plz help me its urgent.


RGraph.pie.js (line 26)
TypeError: this.canvas.getContext is not a function
this.context = this.canvas.getContext("2d");

RGraph.bar.js (line 236)
TypeError: this.context is null
this.context.translate(0.5,0.5);
'

Thnx in advance
Posted by RGraph support on 17th October 2013
Hi there,

Sounds like you are probably using the wrong canvas ID.


Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site
Posted by Priyanka on 17th October 2013
Hi,

I m using correct canvas id still m getting dat error.

I hav another issue as follows:
i hav some negative values in my barchart values...may be bcoz of dat i m getting the following alert but i hav to use stacked barchart only.
what shud i do to avoid this alert?


[BAR] Negative values are not permitted with a stacked bar chart. Try a grouped one instead


Thnx in advance.
Posted by RGraph support on 17th October 2013
Hi there,

You will need to go through your data before you give it to RGraph and remove the negative values (change them to 0).





Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site
Posted by Priyanka on 17th October 2013
Hi,

The key of my piecharts are very long so the box which containing the key becomes very big ,but i dnt want this to happen
so i m using substring concept as by doing the below,

if(key.length >= 8)
    {
     key = key.Substring(0,6) + "...";
     
    }

plz help me so dat i shud be able to display only small string about 5-6 characters in length.

Thnx in advance
Posted by RGraph support on 17th October 2013
Hi there,

If you need help with JavaScript itself you could try stackoverflow.com




Richard, RGraph Support
Please remember to link to the RGraph website

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site

Add a reply

 




« Back to message list
RGraph on social media