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

xaxis not overlapping on line chart

4 Answers 31 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.
ben
Top achievements
Rank 1
ben asked on 04 Mar 2009, 03:58 AM
I have created a line chart and add two series.  The series have differing Y values, but each of the two series have 1-12 X values.  The problem is that they are displayed on the X axis repeating, e.g. it shows 24 entries 1-12 and 1-12...why is this?  It displays the second series as a continuation of the first series.  It is like it is not recognizing that the X values accross the two series are the same.

Thanks,
Ben

4 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 04 Mar 2009, 08:14 AM
Hi ben,

The described scenario should be working fine. We need ou to provide further details and/or the source code that creates the two series to be able to further assist you.

Here is a sample code, that works as expected:
public Form1() 
    Random r = new Random(); 
    InitializeComponent(); 
 
    // Create first series 
    ChartSeries series1 = new ChartSeries(); 
    series1.Type = ChartSeriesType.Line; 
    for (int i = 0; i < 12; i++) 
    { 
        series1.AddItem(new ChartSeriesItem(i, r.Next(0, 100))); 
    } 
 
    // Create second series 
    ChartSeries series2 = new ChartSeries(); 
    series2.Type = ChartSeriesType.Line; 
    for (int i = 0; i < 12; i++) 
    { 
        series2.AddItem(new ChartSeriesItem(i, r.Next(0, 100))); 
    } 
     
    // Add series to RadChart 
    this.radChart1.Series.Add(series1); 
    this.radChart1.Series.Add(series2); 

Best,
Evtim
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.
0
ben
Top achievements
Rank 1
answered on 04 Mar 2009, 03:46 PM
Well, using this method it works, but if I use a data set and set the bound columns it does not for some reason.  I think it is something funky with my date xaxis.
0
Dwight
Telerik team
answered on 05 Mar 2009, 08:16 AM
Hi ben,

Can you, please, provide a sample application, that we can locally analyze? That way we will be able to provide you with a solution to the problem.

Regards,
Evtim
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.
0
Dwight
Telerik team
answered on 05 Mar 2009, 08:17 AM
Hi ben,

Can you, please, provide a sample application, that we can locally analyze? That way we will be able to provide you with a solution to the problem.

For that purpose, you need to open a support ticket (not in the forums) and attach the project.

Regards,
Evtim
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.
Tags
Chart (obsolete as of Q1 2013)
Asked by
ben
Top achievements
Rank 1
Answers by
Dwight
Telerik team
ben
Top achievements
Rank 1
Share this question
or