chart databind problem

Thread is closed for posting
2 posts, 1 answers
  1. salih
    salih avatar
    9 posts
    Member since:
    Feb 2008

    Posted 18 Apr 2012 Link to this post

    Hi;
    my chart How do I connect with datatable 
    my code but chart item no bound do you speak turkish.
    Private Sub ComboDoldur()
            objDt = objLogin.Select("TBLPROJEADI")
            radFirma.DataSource = objDt
            radFirma.DataTextField = "TXTPROJEADI"
            radFirma.DataValueField = "TXTPROJEKOD"
            radFirma.DataBind()
        End Sub
     
        Private Sub ChartDoldur()
            objDt = objLogin.Select("VIEWBOLGELEME", Nothing, "ORDER BY CAGRISAYISI DESC")
            radChart.DataSource = objDt
            radChart.PlotArea.YAxis.AddRange(0, 1, 0.1)
            radChart.Series(0).DataXColumn = "X"
            radChart.Series(0).DataYColumn = "Y"
            radChart.Series(0).Appearance.LabelAppearance.Visible = False
            radChart.DataBind()
        End Sub

  2. Answer
    Pawar
    Pawar avatar
    15 posts
    Member since:
    Apr 2012

    Posted 18 Apr 2012 Link to this post

    Try this way, It should work.

    radchartcontrole.Clear()

    radchartcontrole.PlotArea.XAxis.AutoScale =

     

    False

     

    radchartcontrole.PlotArea.XAxis.IsZeroBased =

     

    False

     

    radchartcontrole.PlotArea.XAxis.AutoShrink =

     

    True

     

    radchartcontrole.DataSource = Select a,b from tableab

    radchartcontrole.DataBind()

     

     

    'radchartcontrole.Series(0).DataXColumn = dataXColumnName

     

    radchartcontrole.Series(0).DataYColumn = 'a'

    radchartcontrole.PlotArea.XAxis.DataLabelsColumn = 'b'


    Or

    Refere   http://www.telerik.com/help/aspnet-ajax/radchart-building-data-bind-database.html

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top