<system.web> "Chartimg.axd"verb="Get,head,post"Type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, version=4.0.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35"Validate="false"/> "false"> <controls> <add tagprefix="ASP" namespace="System.Web.UI.DataVisualization.Charting"Assembly="System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/> </controls> </pages></system.web><system.webServer> <modules runallmanagedmodulesforallrequests="true"/> "Chartimagehandler"/> <add name="Chartimagehandler"precondition="Integratedmode"verb="Get,head,post"Path="Chartimg.axd"Type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, version=4.0.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35"/> configuration file<%@ Page language="C #"autoeventwireup="true"codefile="ChartFirst.aspx.cs"inherits="Chartfirst"%><%@ Register assembly="System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"Namespace="System.Web.UI.DataVisualization.Charting"tagprefix="ASP"%><! DOCTYPE HTML Public"-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">"http://www.w3.org/1999/xhtml">"Server"> <title> Radar Charts </title> "Form1"runat="Server"> <table> <tr> <td> <asp:chart id="Chart1"runat="Server"Width="600px"height="600px"visible="false"Backcolor="#e7f6ff"> <Titles> <asp:title text="Radar Chart"> <position y=" the"x=" -"></Position> </asp:Title> </Titles> <Series> <asp:series name="Series1"Color="Red"Chartarea="ChartArea1"Charttype="Radar"Isvalueshownaslabel="false"BorderWidth="2"> </asp:Series> </Series> <ChartAreas> <asp:chartarea name="ChartArea1"alignmentorientation="Vertical"> <axisy linecolor=" ----"> <labelstyle font="song body, 8.25pt"/> <majorgrid linecolor="Silver"/> <majortickmark size="0"/> </AxisY> <axisx linecolor=" ----"> <labelstyle font="song body, 8.25pt"/> </AxisX> <position y="0"height=" -"Width=" -"x="0"></Position> </asp:ChartArea> </ChartAreas> </asp:Chart> </td> </tr> </table> <input id="hidsrc"Name="hidsrc"Type="Hidden"runat="Server"/> </form></body>View Code protected voidPage_Load (Objectsender, EventArgs e) { if(!page.ispostback) {getchardata (); } } /// <summary> ///binding Radar Diagram/// </summary> Private voidGetchardata () {DataTable dt=access to data; List< entity classes > list = datatabletolist< entity classes >. Converttolist (DT); Chart1.visible=true; chart1.series["Series1"]. Points.databind (list,"bound Fields","Tempscore","Tooltip=tempscore,url=linkurl"); chart1.series["Series1"]["Areadrawingstyle"] ="Polygon"; chart1.series["Series1"]["Radardrawingstyle"] =" Line"; if(Point! =0) {chart1.chartareas["ChartArea1"]. Axisy.interval = Point/5; chart1.chartareas["ChartArea1"]. Axisy.maximum =Point ; chart1.chartareas["ChartArea1"]. Axisy.minimum =0; } } }
Background CodeASP. NET Comp Radar diagram