Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Creating Silverlight Graph
10 replies. Latest Post by gjhdigital on August 27, 2008.
(0)
taqi_ahmed
Member
2 points
15 Posts
08-25-2008 8:02 AM |
HI,
I want to create graph in silverlight,does anyone knows which programming is required to create silverlight application.
Regards,
Mir.
HarshBar...
Star
9908 points
1,719 Posts
08-25-2008 8:17 AM |
Hi.
You Can develop application in .Net Languages(c#,Vb...) as well as some other languages like Ruby,Python etc.
You can check this link where that is already developed..
http://joestegman.members.winisp.net/Jelly/Pie.htm
Source code at http://joestegman.members.winisp.net/Jelly/Jelly.zip
This is developed in Javascript and earlier version of Silverlight but you can convert this to your preferred language..
Mark as answer if it answers your Question..
party42
Participant
1102 points
338 Posts
08-25-2008 9:50 AM |
i love quoting myself
party42: Silverlight doesn't have an inbuilt graph control and I don't know if there's ever gonna be one. There are some great 3rd party controls available though, especially http://www.visifire.com/. Take a look at some examples in their gallery.quote:What is Visifire? Visifire is a set of open source data visualization components - powered by Microsoft® Silverlight™. With Visifire you can create and embed visually stunning animated Silverlight Charts within minutes. Visifire is easy to use and independent of the server side technology. It can be used with ASP, ASP.Net, PHP, JSP, ColdFusion, Ruby on Rails or just simple HTML. Don't take our word for it! Visit Visifire Gallery or design your own chart using Chart Designer.
Silverlight doesn't have an inbuilt graph control and I don't know if there's ever gonna be one. There are some great 3rd party controls available though, especially http://www.visifire.com/. Take a look at some examples in their gallery.
quote:
mir.soft
6 points
3 Posts
08-25-2008 11:31 AM |
Hi,
I have got to display the stock in the graphical silverlight application.
I like Javascript and Ajax so i have found the below site that provides me great help,
But when i added the graph on my application it doesn't work on Internet Explorer 7.0
where as it works fine on Mozilla and IE<7.0.
Can anyone of you please figureout this issue.
http://ashishware.com/XAMLGraph3D.shtml
Mir
gjhdigital
1415 points
301 Posts
08-25-2008 4:17 PM |
that link works fine in my IE7. do you have code we can see?
Also, Jesse Liberty posted this tutorial for creating graphs and charts a while back that you can probably implement pretty easy with ajax and json.http://silverlight.net/learn/learnvideo.aspx?video=335
I have a JSON tutorial you can download as well:http://www.gjhdigital.com/gjhdigital/sl/JSONSilverlight/
08-26-2008 4:31 AM |
I am not concerned about the graph present in the link i am concerned about the procedure which is specified on the site to create the graph.If you read the complete
instructions on the site you shall be creating 4 files namely graph.html,graph.xaml,
prototype.js,graphjson.php.And if you try opening the html file you will probably get
the graph on the ie7 but if you change the data present in the graphjson.php then the graph will not be reflected corresponding to the data you assign.
08-26-2008 10:31 AM |
Its probably the history bug thats an issue with using ajax. Try adding a random number appended as a querystring in the ajax call to the .php page like this:
var x = Math.random();var AJAXURL = "http://ashishware.com/graphjson.php?ID=x";
that way a unique call to the .php page is made evertime.
08-26-2008 12:35 PM |
But in our project AJAXURL may not be any url what if suppose it is just a file name
AJAXURL=graph.php then how you can refer with Math.random() with the string variable.
I tried but even it doesn't work.
Mir,
08-26-2008 1:31 PM |
I believe that is the problem, your data coming back from the ajax call is also including the html code of the webpage. Do a javascript alert(); of the data coming back from the ajax XMLResponse and you will see if its right or not.
Ajax returns the response of the webpage.
try making a "data.php" page and put in the json code on that page and set:var x = Math.random();AJAXURL= "data.php?id=" + x;
08-27-2008 5:38 AM |
still same issue
08-27-2008 9:10 AM |
were you able to see the data coming back? Maybe put it in an alert message or in an element's .innerHTML to make sure the data is at least updating.
You should probably post some code so we can look at it.