This is a migrated thread and some comments may be shown as answers.

Xaxis values didnt show

1 Answer 29 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Giri
Top achievements
Rank 1
Giri asked on 19 Sep 2008, 06:04 AM
Hi,
       I am using radchart in my project.In  this  chart i am binding the datasource,assigning values for X and Y axis all in the runtime.The view of the chart is Bar.Here i have the problem is the y axis value is show correctly but in the x axis i am binding the month value.So actually it want to show the month name but in the x axis only the numbers will show like 1,2 etc......Here my codings are........


 Dim strsql As String

                Dim ds As New DataSet
                Dim conn As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
                Dim sqlconn As New SqlConnection(conn)
                strsql = "SELECT Month, QtyProduced FROM vw_productionyr WHERE year = " & Date.Today.Year
                Dim da As SqlDataAdapter = New SqlDataAdapter(strsql, sqlconn)
                da.Fill(ds)
              
                RadChart1.Series(0).Clear()
                RadChart1.Series(0).DataXColumn = "Month"
                RadChart1.Series(0).DataYColumn = "QtyProduced"
                             
                RadChart1.DataSource = ds
                RadChart1.DataBind()

                For i As Integer = 1 To RadChart1.Series.Count - 1
                    RadChart1.Series(i).Clear()
                Next

Help me to solve this problem and all i want to do in the runtime only.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Sep 2008, 06:56 AM
Hi Giri,

You can find my answer in the other forum thread dedicated to the same issue.

Regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Giri
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or