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

Series at Runtime

7 Answers 138 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Filipe Rodrigues
Top achievements
Rank 1
Filipe Rodrigues asked on 24 May 2007, 11:53 AM
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.

7 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 25 May 2007, 01:02 PM
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
0
Filipe Rodrigues
Top achievements
Rank 1
answered on 30 May 2007, 09:55 AM

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

0
Vladimir Milev
Telerik team
answered on 31 May 2007, 08:39 AM
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
0
Filipe Rodrigues
Top achievements
Rank 1
answered on 31 May 2007, 10:39 AM
That solved the problem.
Thank you.
0
Ryan Farquhar
Top achievements
Rank 1
answered on 20 Jun 2007, 12:34 PM
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.

0
Dwight
Telerik team
answered on 20 Jun 2007, 02:25 PM
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
0
Ryan Farquhar
Top achievements
Rank 1
answered on 20 Jun 2007, 06:27 PM
That worked great. Thanks! I have another question, but I will start a new thread for that.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Filipe Rodrigues
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Filipe Rodrigues
Top achievements
Rank 1
Ryan Farquhar
Top achievements
Rank 1
Dwight
Telerik team
Share this question
or