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

Multi Series Bar Chart Data points slide to left

3 Answers 52 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Renee
Top achievements
Rank 1
Renee asked on 25 Oct 2012, 05:28 PM

I have a bar chart with multiple series.

   chartResults.DataManager.ValuesYColumns = "fValue"
   chartResults.DataManager.ValuesXColumn = "iDate"
   chartResults.DataGroupColumn = "sType"
   chartResults.PlotArea.XAxis.Appearance.ValueFormat = Styles.ChartValueFormat.ShortDate
   chartResults.DataSource = dt
   chartResults.DataBind()

   chartResults.PlotArea.XAxis.AutoScale = True  
   chartResults.PlotArea.XAxis.IsZeroBased = False
   chartResults.PlotArea.YAxis.IsZeroBased = True
   chartResults.PlotArea.XAxis.Appearance.Visible = Styles.ChartAxisVisibility.True

When one series exists, the rightmost point lies to the right (correctly) of XLabel 10/23/2012. When a second series is added, the rightmost point moves to the left of 10/23/2012. This is incorrect, and does not reflect the accuracy of the first series. 

Can someone offer any advice, or workaround to get the points to stay on their correct x-axis point? 
Any help or advice is greatly appreciated! TIA!

3 Answers, 1 is accepted

Sort by
0
Waseem
Top achievements
Rank 1
answered on 26 Oct 2012, 02:41 AM
My Dear, i am using like this . I think you should false AutoScale of x and true the autoscale of y. May be it should help you.

  RadChart1.PlotArea.XAxis.AutoScale = false;
  RadChart1.PlotArea.YAxis.AutoScale = true;

  RadChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside;
  RadChart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;
  RadChart1.PlotArea.XAxis.Appearance.CustomFormat = "MMM";
  RadChart1.PlotArea.XAxis.AddRange(DateTime.Parse("2010-01-01").ToOADate(), DateTime.Parse("2011-01-01").ToOADate(), 31);
  RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended;

  RadChart1.Series[0].Appearance.LabelAppearance.Visible = false;
  RadChart1.Series[1].Appearance.LabelAppearance.Visible = false;

Regards
Muhammad Waseem
0
Renee
Top achievements
Rank 1
answered on 30 Oct 2012, 07:20 PM
This solution did not work for me.

0
Waseem
Top achievements
Rank 1
answered on 24 Nov 2012, 02:38 PM
Did you send me sample project of this. So i can made it for you.
my email address is emc_waseem@hotmail.com .
Tags
Chart (Obsolete)
Asked by
Renee
Top achievements
Rank 1
Answers by
Waseem
Top achievements
Rank 1
Renee
Top achievements
Rank 1
Share this question
or