Response

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 gooddmood on 19th October 2012
yes they are all in a single onload event as you said . it works for two charts but the third didnt want to work

sorry the captcha works only if i create new post if i reply it saids wrong even when its right.
please fix your captcha
Posted by RGraph support on 19th October 2012
Hi,

Try posting a link to an example.

As for the CAPTCHA - it's fine - otherwise how did you post your message and how did I reply?
Posted by gooddmood on 19th October 2012
its localhost , i cant give you a link to localhost.
Posted by gooddmood on 19th October 2012
ahh i understand now the captcha :) , the letters are big so when i write them also big its error . i must write the captcha letters in small letters even if they big.
Posted by RGraph support on 19th October 2012
Hi,

OK - I've changed the CAPTCHA so you shouldn't have any further problems. As far as the three charts go - I'd suggest that you startoff with a "bare bones" HTML page and add things to it gradually - first one chart, then add the second, then add the third. Then when all three are added to your page start by adding your websites surrounding things (eg navigation/design etc). This way you will at least be able to narrow down the issue.
Posted by gooddmood on 19th October 2012
hi , is this right ? this is how i made.


          var age = <?php echo $_SESSION['age'];?>;
         var weight = <?php echo $_SESSION['weight'];?>;
          var length = <?php echo $_SESSION['length'];?>;
         window.onload = function ()
         {
       
             // Create and configure the Scatter chart
             var scatter = new RGraph.Scatter('wfa_b', [
                                                  [age,weight, 'black'],
                                                  [442,weight, '#CE2118'],
                                                  [124.85,2, 'black'],
                                                  [124,2, 'black'],
                                                  [5,111, 'gray'],
                                                  [5,112, 'red'],
                                                  [12,114, 'gray'],
                                                  [0,110, 'black']
                                                 ]);
             scatter.Set('chart.xmax', 24.85);
    scatter.Set('chart.ymax', 16.6);
             scatter.Set('chart.labels', ['06','07','08','09','10','11','1Year','13','14','15','16','17','18','19','20','21','22','23','2Years']);
    
             bubble = new RGraph.Scatter.Bubble(scatter, 0, // Minimum
                                                         250, // Maximum
                                                         25, // Max width
                                                         [50,50,50,50,90,84,86,87] // Bubble data
                                                        );
             bubble.Draw();


       
             // Create and configure the Scatter chart
             var scatter2 = new RGraph.Scatter('lfa_b', [
                                                  [age,length, 'black'],
                                                  [124.85,45, '#CE2118'],
                                                  [111,45, 'black'],
                                                  [111,90, 'black'],
                                                  [5,111, 'gray'],
                                                  [5,112, 'red'],
                                                  [12,114, 'gray'],
                                                  [0,110, 'black']
                                                 ]);
             scatter2.Set('chart.xmax', 24.85);
    scatter2.Set('chart.ymax', 95);
             scatter2.Set('chart.ymin', 45.1);
             scatter2.Set('chart.xmin', 0);
             scatter2.Set('chart.labels', ['06','07','08','09','10','11','1Year','13','14','15','16','17','18','19','20','21','22','23','2Years']);
scatter2.Draw();
             bubble2 = new RGraph.Scatter.Bubble(scatter2, 0, // Minimum
                                                         250, // Maximum
                                                         25, // Max width
                                                         [50,50,50,50,90,84,86,87] // Bubble data
                                                        );
             bubble2.Draw();
                          var scatter3 = new RGraph.Scatter('wfa_g', [
                                                  [age,weight, 'black'],
                                                  [14.5,45, '#CE2118'],
                                                  [111,45, 'black'],
                                                  [111,90, 'black'],
                                                  [5,111, 'gray'],
                                                  [5,112, 'red'],
                                                  [12,114, 'gray'],
                                                  [0,110, 'black']
                                                 ]);
             scatter3.Set('chart.xmax', 24.85);
    scatter3.Set('chart.ymax', 15.6);
             scatter3.Set('chart.ymin', 1.4);
             scatter3.Set('chart.xmin', 0);
             scatter3.Set('chart.labels', ['06','07','08','09','10','11','1Year','13','14','15','16','17','18','19','20','21','22','23','2Years']);
scatter3.Draw();
             bubble3 = new RGraph.Scatter.Bubble(scatter3, 0, // Minimum
                                                         250, // Maximum
                                                         25, // Max width
                                                         [50,50,50,50,90,84,86,87] // Bubble data
                                                        );
             bubble3.Draw();
            
         }
Posted by RGraph Support on 21st October 2012
Hi,

Nothing sticks out as being incorrect. Try reducing your charts to the bare minimum so that you can get them up and running first - including removing the Bubble chart code. Just start with basic Scatter charts.
Posted by gooddmood on 22nd October 2012
ok i get it work thanks.
it was this
  var age = <?php echo $_SESSION['age'];?>;
it should be like that
  var age = "<?php echo $_SESSION['age'];?>";
because its string.
thanks for the help

Add a reply




« Back to message list