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

AxisY is not visible!!!!!

1 Answer 15 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Minseok Bang
Top achievements
Rank 1
Minseok Bang asked on 28 Apr 2010, 03:38 AM

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~~

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 30 Apr 2010, 10:58 AM
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.
Tags
Chart
Asked by
Minseok Bang
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or