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






Resources » Tips » General »

Create Charts using VB.Net (DevExpress ChartControl)


Posted Date: 22 Nov 2008    Resource Type: Tips    Category: General
Author: KomathiMember Level: Silver    
Rating: 1 out of 5Points: 5



Place one DevExpress ChartControl in your Form.And then You will write the Following Codes in Form_Load Event or Combobox_SelectedIndexChanged Event

Dim sFolder As String
sFolder = CboFolder.SelectedItem
If sFolder <> "" Then
Dim sqlQuery As String
sqlQuery = "Select * from SampleChart where FolderName='" & sFolder & "'"

Dim adapter As New SqlDataAdapter(sqlQuery, con)
Dim dt_Stocks As New DataTable()
adapter.Fill(dt_Stocks)
Dim dv_Stocks As New DataView(dt_Stocks)
dv_Stocks.Sort = "TotalRecords"

Dim Series As New Series("SampleChart", ViewType.Area)
ChartControl1.Series.Add(Series)

ChartControl1.DataSource = dt_Stocks
ChartControl1.SeriesDataMember = "PersonName"
ChartControl1.SeriesTemplate.ArgumentDataMember = "PersonName"
ChartControl1.SeriesTemplate.ValueDataMembers.AddRange(New String() {"TotalRecords"})
ChartControl1.Visible = True
End If


Regards

Komathi.S



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Devexpress charts  .  Coding  .  Charting  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Changing Text Size in mozila firefox
Previous Resource: Configuring Internet in China Mobiles
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use