charts error

8 posts, 0 answers
  1. Pradeep
    Pradeep avatar
    8 posts
    Member since:
    Jun 2009

    Posted 10 Jun 2009 Link to this post

    Hi i m new to telerik charts... i need some help from you guys...

    1.I copied sample code from the rad chart and paste it in my application."seriesextensions.fillwithsampledata(barseries" is showing error and the remaining things is fine.

    2. i want to display months in the x-axis.i wrote  some code
    dim months as string()= new string(){"jan","feb",....}
    for i= 0 to months.length-1
       radchart1.defaultview.chartarea.axisx.label=months(i)
    next
    it is not showing the item labels

    quick reply is appreciable.
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 12 Jun 2009 Link to this post

    Hello Pradeep,

    Please check the code for this example: http://demos.telerik.com/silverlight/#Chart/FirstLook
    Especially this part:
    Dim months As String() = New String() {"Jan""Feb""Mar""Apr""May""Jun", _ 
        "Jul""Aug""Sep""Oct""Nov""Dec"
     
    For i As Integer = 0 To months.Length - 1 
        ChartArea2.AxisX.TickPoints(i).Label = months(i) 
    Next 


    All the best,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Matt
    Matt avatar
    10 posts
    Member since:
    Feb 2006

    Posted 25 Jun 2009 Link to this post


    I'm also getting an error on SeriesExtensions - "Name 'SeriesExtensions' is not declared"

    Which namespace does it belong to?
  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 29 Jun 2009 Link to this post

    Hello Matt Schaunaman,

    You are probably just copy-pasting code from the examples. The SeriesExtensions class is simply a utility library which is part of the examples library which generates random data for the charts. You should substitute it with your own code supplying business data to the control.

    Regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Abdul
    Abdul avatar
    1 posts
    Member since:
    Oct 2012

    Posted 30 Jul 2009 Link to this post

    I am also new to Telerik Charts and want to know what is the namespace used for  "SeriesExtensions".
    Please Reply ASAP.
  7. James
    James avatar
    47 posts
    Member since:
    Jun 2009

    Posted 06 Sep 2009 Link to this post

    Hi Vladimir
    suggestion - you should include the utility code of SeriesExtensions in the demo http://demos.telerik.com/silverlight/#Chart/FlexibleAPI to avoid the confusion that Pradeep or Just had.

    hi Pardeep, Just

    I tried below code replacing with the line of "seriesextensions.fillwithsampledata(barseries",7) in the demo code and it worked for me (vb.net):

    For Each data As ChartDataViewModel In Model.ChartElementDataList
                dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
            Next
            chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)

    James
    http://highviewsoft.com
  8. Shrikant
    Shrikant avatar
    3 posts
    Member since:
    Jan 2011

    Posted 01 Mar 2011 Link to this post

    Hi Telerik Admin,
             I have downloaded demo telerik controls for Silverlight. The Problem discussed above , the same problem came through in my coding also. i.e.  code of SeriesExtensions in the demo .
       Here Pradeep Explained vb.net code but i am C# developer, so can you plz convert that code in C# or any new solution 
     
       Vb.net code :-
            For Each data As ChartDataViewModel In Model.ChartElementDataList
                dataSerie.Add(New DataPoint() With {.XCategory = data.ChartXY.X.ToString(), .YValue = CDbl(data.ChartXY.Y)})
            Next
            chart.DefaultView.ChartArea.DataSeries.Add(dataSerie)

      Please Help me out
      Thanks
  9. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 07 Mar 2011 Link to this post

    Hello Matt,

    Both the VB and C# versions of the SeriesExtensions are available in the download for RadControls for Silverlight.

    All the best,
    Vladimir Milev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top
DevCraft banner