Error while creating chart using c# asp.net -


hi first time i'm trying create chart , have error, can 1 me please ?

this code ( i'm using line chart ) :

protected void page_load(object sender, eventargs e)     {         chart1.chartareas.add("chtares");         chart1.chartareas[0].axisx.title = "category name";         chart1.chartareas[0].axisx.titlefont = new system.drawing.font("verdana", 11, system.drawing.fontstyle.bold);         chart1.chartareas[0].axisy.title = "unitprice";         chart1.chartareas[0].axisy.titlefont = new system.drawing.font("verdana", 11, system.drawing.fontstyle.bold);         chart1.chartareas[0].borderdashstyle = chartdashstyle.solid;         chart1.chartareas[0].borderwidth = 2;          chart1.legends.add("unitprice");         chart1.series.add("unitprice");          chart1.series[0].charttype = system.web.ui.datavisualization.charting.seriescharttype.line;         chart1.series[0].points.databindxy(result.defaultview, "categoryname", result.defaultview, "unitprice");      }  } 

and error source error:

line 1: <%@ application codebehind="global.asax.cs" inherits="webapplication3.global" language="c#" %>


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -