[Solved] Error: The type or namespace SeriesChartType could not be found

ramco1917
 
on Nov 21, 2022 05:06 AM
209 Views

Hi

On below code i am getting above error - The type or namespace "SeriesChartType" could not be found"

Chart1.DataSource = objResult;
Chart1.Series[0].ChartType = (SeriesChartType)int.Parse(rblChartType.SelectedItem.Value);

Thanks

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Nov 21, 2022 05:08 AM

Import the namespace.

For Windows Application

using System.Windows.Forms.DataVisualization.Charting;

For Web Application

using System.Web.UI.DataVisualization.Charting;