How do I show a Scatter chart with classic ASP?

« 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 Bert on 2nd November 2012
I have renamed the file scatter02.html into scatter02.asp

Message [No canvas support] appeared

Is it possible to use scatter graph with ASP script?

Please advice.
Posted by RGraph support on 2nd November 2012
Are you using MSIE? This is usually as a result of not having a DOCTYPE at the top of you file. Add this:

<!DOCTYPE html >

on the very first line of your file.
Posted by Bert on 2nd November 2012

I use MSIE 8

See content of scatter02.asp below (no problems with scatter02.html, same script, only different file type)

<!DOCTYPE html >
     <link rel="stylesheet" href="demos.css" type="text/css" media="screen" />
     <script src="RGraph.common.core.js" ></script>
     <script src="RGraph.scatter.js" ></script>
     <!--[if lt IE 9]><script src="excanvas.js"></script><![endif]-->
     <canvas id="cvs" width="630" height="415">[No canvas support]</canvas>
         window.onload = function ()
             // Create and configure the Scatter chart
             var scatter = new RGraph.Scatter('cvs', [
                                                  [200,785, 'blue'],
                                                  [165,225, 'red'],
                                                  [2655,1795, 'red'],
                                                  [2695,190, 'red'],
                                                  [1895,915, 'red'],
                                                  [2630,1700, 'red'],
                                                  [215,1020, 'red'],
                                                  [2465,1330, 'red'],
                                                  [0,0, 'blue'],
                                                  [2999,1999, 'yellow'],
                                                  [1500,1000, 'purple']
             scatter.Set('chart.xmax', 3030);
             scatter.Set('chart.ymax', 2015);
             bubble = new RGraph.Scatter.Bubble(scatter, 0, // Minimum
                                                         100, // Maximum
                                                         15, // Max width
                                                         [50,50,50,50,50,50,50,50,50,50,50] // Bubble data
Posted by RGraph support on 2nd November 2012

If all you're changing is the file extension then it may be a server configuration issue.

Add a reply

« Back to message list