Dundas Chart Radar, Radarchart simple example

Source: Internet
Author: User
Tags radar

Using version Dundas+chart+for+asp.net+enterprise+edition+v6.2.0.1740+for+visual+studio+2008+retail

Environmental WIN2008 r2+vs2008

Code:

private void Bindradar () {this. Chart1.width = 800; This. Chart1.height = 800; Populate series Data double[] yvalues = {65.62, 75.54, 60.45, 34.73, 85.42, 55.9, 63.6, 55.2, 77.1}; String[] XValues = {"France", "Canada", "Germany", "USA", "Italy", "Spain", "Russia", "Sweden", "Japan"}; This. chart1.series["Series1"]. POINTS.DATABINDXY (XValues, yvalues); Set Radar chart Type this. chart1.series["Series1"]. Type = Seriescharttype.radar; Set Radar chart Style (area, line or Marker) this. chart1.series["Series1" ["radardrawingstyle"] = "area"; Set Circular area drawing style (Circle or Polygon) this. chart1.series["Series1" ["areadrawingstyle"] = "Circle"; Set labels Style (Auto, horizontal, circular or radial) this. chart1.series["Series1" ["circularlabelsstyle"] = "horizontal"; Show as 3D this. chart1.chartareas["Default"]. Area3dstyle.enable3d = true; Seris2 double[] y = {45.62, 65.54, 70.45, 84.73, 35.42, 55.9, 63.6}; This. chart1.series["Series2"]. Points.databindy (y); //Set display value this. chart1.series["Series1"]. Showlabelasvalue = true; This. chart1.series["Series2"]. Showlabelasvalue = true; Set whether there is a gap between x,y this. chart1.chartareas["Default"]. Axisx.margin = true; This. chart1.chartareas["Default"]. Axisy.margin = true; It is useful to set an x-axis display interval of more than 1,x axis data. chart1.chartareas["Default"]. AxisX.LabelStyle.Interval = 1; Sets the name of the XY axis title to a location far chart1.chartareas["Default". Axisx.titlealignment = Stringalignment.near; Set the y-axis preceded by an arrow chart1.chartareas["Default"]. Axisy.arrows = Arrowstype.triangle; for (int i = 0; i < chart1.series["Series1"]. Points.count; i++) {chart1.series["Series1"]. Points[i]. MarkerStyle = markerstyle.square//Set the style of the fold point chart1.series["Series1"]. Points[i]. Markercolor = color.red;//Set the color of the fold point in seires} chart1.imagetype = Chartimagetype.jpeg; Anti-aliasing chart1.antialiasing = Antialiasing.all; Palette scrub: semitransparent chart1.palette = chartcolorpalette.semitransparent; }

Effect Chart:

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.