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

problem with series name

2 Answers 45 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.
mahdi gh
Top achievements
Rank 1
mahdi gh asked on 19 Jun 2010, 03:32 PM
hi, i am using this code to organize my chart but there is a problem and it is: the first sere name does not shown!!
here is my code:
int i=0
            radChart1.Series.Clear(); 
            foreach (DataRow row in dt.Rows) 
            { 
                radChart1.Series.Add(new Telerik.Charting.ChartSeries(row["ykol_name"].ToString().Trim(), Telerik.Charting.ChartSeriesType.Bar)); 
                radChart1.Series[i].AddItem(Convert.ToDouble(row["cnt"]), string.Format("({1}({0}", row["cnt"],row["ykol_name"].ToString().Trim())); 
                i++; 
            } 
how can i fix this problem?
thanks


2 Answers, 1 is accepted

Sort by
0
mahdi gh
Top achievements
Rank 1
answered on 20 Jun 2010, 11:33 AM
please help me
i need this quickly
thanks
0
Velin
Telerik team
answered on 24 Jun 2010, 08:07 AM
Hi mahdi gh,

Unfortunately, we will need more information in order to be able to help. Please make sure that the "ykol_name" cell  for the first row contains a string and not null or empty string.

Greetings,
Velin
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 (obsolete as of Q1 2013)
Asked by
mahdi gh
Top achievements
Rank 1
Answers by
mahdi gh
Top achievements
Rank 1
Velin
Telerik team
Share this question
or