ASP. NET Comp Radar diagram

Source: Internet
Author: User
Tags radar

<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 Code

ASP. NET Comp Radar diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.