Multi Series Bar Chart Data points slide to left

Thread is closed for posting
4 posts, 0 answers
  1. Renee
    Renee avatar
    3 posts
    Member since:
    May 2012

    Posted 25 Oct 2012 Link to this post

    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!

  2. <span>w</span>
    <span>w</span> avatar
    84 posts
    Member since:
    Jun 2012

    Posted 25 Oct 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Renee
    Renee avatar
    3 posts
    Member since:
    May 2012

    Posted 30 Oct 2012 Link to this post

    This solution did not work for me.

  5. <span>w</span>
    <span>w</span> avatar
    84 posts
    Member since:
    Jun 2012

    Posted 24 Nov 2012 Link to this post

    Did you send me sample project of this. So i can made it for you.
    my email address is emc_waseem@hotmail.com .
Back to Top