C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Silverlight »

How to bind array of datas to the chart control


Posted Date: 01 Oct 2009      Posted By: Renuga      Member Level: Silver     Points: 1   Responses: 1



Hi,

I have a array of Data for the Yaxis values and Array of Datetime for the XAxis values, how to bind these values in the silverlight chart control?

Thanks,





Responses

Author: Anu    01 Oct 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

in the aspx page , in series section write as shown below:

<asp:Series ChartArea="ChartArea1"
Name="Target Achieved" XValueMember ="Date" YValueMembers ="TargetAchieved" ChartType="Line">

</asp:Series>


Where Date is the date in x =axis
TargetAchieves column name of your data needed in y-axis


in the aspx.cs file bind the chart as :

Chart1.DataSource = dt;
Chart1.DataBind();

where dt is the datatable



Post Reply
You must Sign In to post a response.
Next : Use of silverlight in .net
Previous : Animation in silverlight
Return to Discussion Forum
Post New Message
Category: Silverlight

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use