Hi, am trying to get my values in a bar chart be in the fromat of currency.am using the code below but am now getting an error that " cannot implicitly convert type string[] to decimal[].
the error is in the line of code i have highlighted.please kindly help.
string[] x = new string[dt.Rows.Count];
string[] y = new string[dt.Rows.Count];
for (int i = 0; i {
x[i] = dt.Rows[i][0].ToString();
y[i] = string.Format("{0:##,##0.00}", dt.Rows[i][1].ToString());
}
BarChart1.Series.Add(new AjaxControlToolkit.BarChartSeries { Data = y});
BarChart1.CategoriesAxis = string.Join(",", x);
string[] y = new string[dt.Rows.Count];
for (int i = 0; i
x[i] = dt.Rows[i][0].ToString();
y[i] = string.Format("{0:##,##0.00}", dt.Rows[i][1].ToString());
}
BarChart1.Series.Add(new AjaxControlToolkit.BarChartSeries { Data = y});
BarChart1.CategoriesAxis = string.Join(",", x);
Ramesh PalanivelPosted Dec 18, 2017, 6:15 AM
john kanyoraPosted Dec 18, 2017, 6:33 AM
john kanyoraPosted Dec 18, 2017, 6:14 AM
Ramesh PalanivelPosted Dec 18, 2017, 6:04 AM
john kanyoraPosted Dec 18, 2017, 6:00 AM
Ramesh PalanivelPosted Dec 18, 2017, 5:53 AM
john kanyoraPosted Dec 18, 2017, 5:38 AM
Ramesh PalanivelPosted Dec 18, 2017, 5:36 AM
john kanyoraPosted Dec 18, 2017, 5:35 AM
Ramesh PalanivelPosted Dec 18, 2017, 5:32 AM
john kanyoraPosted Dec 18, 2017, 5:25 AM
Ramesh PalanivelPosted Dec 18, 2017, 5:15 AM
john kanyoraPosted Dec 18, 2017, 4:43 AM
Ramesh PalanivelPosted Dec 18, 2017, 4:39 AM
john kanyoraPosted Dec 18, 2017, 3:56 AM
Ramesh PalanivelPosted Dec 18, 2017, 3:46 AM
john kanyoraPosted Dec 18, 2017, 3:39 AM
Ramesh PalanivelPosted Dec 18, 2017, 3:30 AM