Skip to main content

Microsoft Silverlight

Answered Question Creating Silverlight GraphRSS Feed

(0)

taqi_ahmed
taqi_ahmed

Member

Member

2 points

15 Posts

Creating Silverlight Graph

HI,

I want to create graph in silverlight,does anyone knows which programming is required to create silverlight application.

Regards,

Mir.

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Creating Silverlight Graph

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..

Mark as answer if this post answered your question.

Harsh Bardhan

party42
party42

Participant

Participant

1102 points

338 Posts

Re: Creating Silverlight Graph

 i love quoting myself Smile

 

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.

 

Regards,
Nathan Brouwer

http://www.nathanbrouwer.nl

mir.soft
mir.soft

Member

Member

6 points

3 Posts

Re: Re: Creating Silverlight Graph

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

Regards,

Mir

gjhdigital
gjhdigital

Participant

Participant

1415 points

301 Posts

Re: Re: Creating Silverlight Graph

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/

mir.soft
mir.soft

Member

Member

6 points

3 Posts

Re: Re: Re: Creating Silverlight Graph

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.

Regards,

Mir

gjhdigital
gjhdigital

Participant

Participant

1415 points

301 Posts

Re: Re: Re: Creating Silverlight Graph

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.

taqi_ahmed
taqi_ahmed

Member

Member

2 points

15 Posts

Re: Re: Re: Re: Creating Silverlight Graph

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.

Regards,

Mir,

gjhdigital
gjhdigital

Participant

Participant

1415 points

301 Posts

Re: Re: Re: Re: Creating Silverlight Graph

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;

mir.soft
mir.soft

Member

Member

6 points

3 Posts

Re: Re: Re: Re: Re: Creating Silverlight Graph

still same issue

gjhdigital
gjhdigital

Participant

Participant

1415 points

301 Posts

Answered Question

Re: Re: Re: Re: Re: Creating Silverlight Graph

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities