protected void ddlChType_SelectedIndexChanged(object sender, EventArgs e) { if (IsPostBack) { if (ddlChType.SelectedIndex == 1) { saleChart.Series[0].ChartType = SeriesChartType.Pie; } //if (ddlChType.SelectedItem.Text.ToLower() == "pie") //{ // saleChart.Series[0].ChartType = SeriesChartType.Pie; //} else if (ddlChType.SelectedIndex ==5) { saleChart.Series[0].ChartType = SeriesChartType.Funnel; } else if (ddlChType.SelectedIndex ==3) { saleChart.Series[0].ChartType = SeriesChartType.Bar; } else if (ddlChType.SelectedIndex ==2) { saleChart.Series[0].ChartType = SeriesChartType.Column; } else if (ddlChType.SelectedIndex ==4) { saleChart.Series[0].ChartType = SeriesChartType.Line; } else { saleChart.Series[0].ChartType = SeriesChartType.Pie; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)