AxisY is not visible!!!!!

2 posts, 0 answers
  1. Minseok Bang
    Minseok Bang avatar
    19 posts
    Member since:
    Oct 2009

    Posted 27 Apr 2010 Link to this post

    code is below
    ""

    List<int> listMaxOrMinValue = new List<int>();
    int chtMaxValue, chtMinValue;

    for (int i = 1; i < ds.Tables[0].Columns.Count; i++)
     listMaxOrMinValue.Add(Convert.ToInt32(Math.Round(Convert.ToDouble(ds.Tables[0].Rows[0][i]) / 1000000)));

    chtMaxValue = listMaxOrMinValue.Max();
    chtMinValue = listMaxOrMinValue.Min();

    .
    .
    .(lots of coding)
    .
    .

    radChartBottomRight.DefaultView.ChartArea.AxisY.AutoRange = false;
    chtMaxValue = ChtMaxValue(chtMaxValue);
    chtMinValue = ChtMinValue(chtMinValue);
    radChartBottomRight.DefaultView.ChartArea.AxisY.MaxValue = Math.Round((Convert.ToDouble(chtMaxValue) / 1000)) * 1000 + 1000;
    radChartBottomRight.DefaultView.ChartArea.AxisY.MinValue = Math.Round((Convert.ToDouble(chtMinValue) / 1000)) * 1000;
                   
    radChartBottomRight.DefaultView.ChartArea.AxisY.Visibility = Visibility.Visible; -> this is not effective!!!
    ""

    When I code like this, Chart's AxisY is not visible!!!  What Can I do? please help~~

  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 30 Apr 2010 Link to this post

    Hi Minseok Bang,

    It appears you are using manual range for YAxis. If you want to do this, its fine, but you need to specify not only MinValue and MaxValue but also provide a Step which is should be a multiple of the range (max-min). Try using the YAxis.AddRange() method for best results.

    Greetings,
    Vladimir Milev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top