Series at Runtime

8 posts, 0 answers
  1. Filipe Rodrigues
    Filipe Rodrigues avatar
    21 posts
    Member since:
    Oct 2006

    Posted 24 May 2007 Link to this post

    Hi,
    I need to create radchartseries at runtime. For this I have an array of Series names like {Client 1, Client 2, Client 3}, an array of XAxis labels like {month 1, month 2} and I have the chart points for each pair like (Client 1,month 1) = 300; (Client 1,month 2) = 500; (Client 2,month 1) = 560, (Client 2,month 2) = 900...etc.
    I need also to set X labels (in this case, month 1,month 2, etc.).

    How can I do this?
    Thanks.
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 25 May 2007 Link to this post

    Hello Filipe Rodrigues,

    Thanks for your interest in RadChart. You can review this example which makes extensive use of the RadChart API to add, edit and delete series. Although the example is for web chart it provides you with the basic idea how to add series, axis items etc. For more concrete examples please refer to the QuickStart examples of the windows forms version of RadChart.

    Let me know if it helps or if you need additional information.

    Kind regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Filipe Rodrigues
    Filipe Rodrigues avatar
    21 posts
    Member since:
    Oct 2006

    Posted 30 May 2007 Link to this post

    Hi,
    I'm creating series at runtime but my Chart shows in X values 1,2,3 instead of month1, month2, month 3. I will open a support ticket and send you my sample application.
    Thanks

  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 31 May 2007 Link to this post

    Hello Filipe Rodrigues,

    As we have mentioned in the support ticket you have opened the solution for this is to simply disable AutoScale for the X-Axis. Let us know if that helps and if you have any additional questions.

    Regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Filipe Rodrigues
    Filipe Rodrigues avatar
    21 posts
    Member since:
    Oct 2006

    Posted 31 May 2007 Link to this post

    That solved the problem.
    Thank you.
  7. Ryan Farquhar
    Ryan Farquhar avatar
    2 posts
    Member since:
    Jul 2006

    Posted 20 Jun 2007 Link to this post

    Per your suggestion to review the API on the ASP.Net version of the chart I have tried using RadChart1.XAxis, but according to Visual Studio.Net 2005 XAxis is not a member of Telerik.WinControls.UI.RadChart.

    I am using RadChart for Windows Forms. I have found various articles that talk about disabling Autoscale, but since I don't have XAxis, it won't let me use Autoscale. What am I doing wrong here?

    I am using RadControls Q1 2007.

  8. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 20 Jun 2007 Link to this post

    Hello Alicia,

    Unfortunately, the RadChart API for WinForms is a bit different due to changes in the charting engine. We are sorry for the confusion.

    The property you are looking for is
     
    radChart1.PlotArea.XAxis.AutoScale = false

    If you have further questions, please, do not hesitate to write us back.
     

    Best wishes,
    Evtim
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Ryan Farquhar
    Ryan Farquhar avatar
    2 posts
    Member since:
    Jul 2006

    Posted 20 Jun 2007 Link to this post

    That worked great. Thanks! I have another question, but I will start a new thread for that.
Back to Top
UI for WinForms is Visual Studio 2017 Ready