Click here to Skip to main content
15,884,040 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Dim ds As New SQLDBDataSet()
       Dim cnx As New SqlConnection
       cnx.Open()
       
       Dim ta As New SQLDBDataSetTableAdapters.Function1TableAdapter
      
       ta.Fill(ds.Function1, Me.DateValue.Value.ToString("dd/mm/yyyy"))

hello i am trying to creat a range bar chart but it does not work please help with the code below
VB
Dim ChartArea1 As ChartArea = New ChartArea()
       Dim Series1 As New Series
       Dim Chart1 = New Chart()
       Me.Controls.Add(Chart1)

       ChartArea1.Name = "ChartArea1"
       Chart1.ChartAreas.Add(ChartArea1)
       Chart1.Location = New System.Drawing.Point(13, 13)
       Chart1.Name = "Chart1"
       Series1.ChartArea = "ChartArea1"
       Series1.Name = "Series1"
       Series1.ChartType = SeriesChartType.RangeBar
       Chart1.Series.Add(Series1)
       Chart1.Size = New System.Drawing.Size(600, 400)
       Chart1.TabIndex = 0
       Chart1.Text = "Rapport Engin"

       Chart1.Series("Series1").XValueMember = "CodeEngin"
       Chart1.Series("Series1").YValueMembers = "HeureDebut, HeureFin"

       Chart1.DataSource = ds.Tables("Function1")
Posted
Updated 29-Oct-13 1:32am
v3
Comments
ZurdoDev 29-Oct-13 7:32am    
Why doesn't it work?
Ranjan.D 29-Oct-13 7:34am    
Please be descriptive about the chart library and explain your problem. There are thousands of chart library out there and we don't really understand unless you are using one of the Microsoft Server Controls.
Member 10273299 29-Oct-13 19:52pm    
i am using MS chart control library

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900