|
load chart with javascript |
Posted by Ron White on Jun-03-2011 05:10 |
|
I am using javascript to get xml data and build an array. Now I need to put that in a chart.
I use this in vb.net:
"Dim c as XYChart = New XYChart(800,240)".
Whats the equivalent in javascript. I was trying:
var cd = new ActiveXObject("ChartDirector.API");
var c = cd.XYChart(600, 300, 0xeeeeff, 0x000000, 1);
That does not work at all.
Ron |
Re: load chart with javascript |
Posted by Peter Kwan on Jun-03-2011 15:01 |
|
Hi Ron,
Are you using Javascript on the server side code, or client side code? (Is the Javascript executed by the server, or by the browser?)
As far as I know, Microsoft does not support using Javascript on ASP.NET web pages on the server side. (There is a similar language called JScript .NET, which is not compatible with Javascript, and which is not supported by Visual Studio .NET, and is not commonly used. I assume you are not referring to this language.)
So if you use Javascript, you must be either using ASP (not ASP.NET), or running in on the browser side.
If you are using ASP (not ASP.NET), please download "ChartDirector for ASP/COM/VB" instead.
If you are using Javascript on the browser side, note that you would need to install ChartDirector for ASP/COM/VB on the browser computer. (You should not write a script that runs on browser side and uses a software installed on the server side, because the browser and the server may be different computers.) This is usually only practical for a company's internal applications, but not practical if the server is accessible by anyone.
Hope this can help.
Regards
Peter Kwan |
Re: load chart with javascript |
Posted by Ron White on Jun-03-2011 22:05 |
|
Thanks, I guess I can't do what I wanted to do. |
|