0
var pointCollection = lastValuation.ValuationExposureCollection[lastValuation.ValuationExposureCollection.Count - 1].ExposurePointCollection;
System.Web.UI.DataVisualization.Charting.Chart Chart2 = new System.Web.UI.DataVisualization.Charting.Chart();
Chart2.Width = 350;
Chart2.Height = 350;
Chart2.RenderType = RenderType.ImageTag;
Chart2.Palette = ChartColorPalette.BrightPastel;
Chart2.ChartAreas.Add("Series 1");
Chart2.ChartAreas["Series 1"].BackColor = System.Drawing.Color.Transparent;
// create a couple of series
Chart2.Series.Add("Series");
// databinding
Chart2.DataSource = pointCollection;
Chart2.Series[0].XValueMember = "ExposureDate";
Chart2.Series[0].XValueType = ChartValueType.Date;
Chart2.Series[0].YValueMembers = "MaximumExposure";
Chart2.BackColor = System.Drawing.Color.FromArgb(211, 223, 240); //"#D3DFF0"
Chart2.BorderSkin.SkinStyle = BorderSkinStyle.Emboss;
Chart2.BackGradientStyle = GradientStyle.TopBottom;
// Render chart control
Chart2.Page = this;
Page.Response.Clear();
HtmlTextWriter writer = new HtmlTextWriter(Page.Response.Output);
Chart2.RenderControl(writer);
这是我当前的图表。我如何将它变成线形图而不是条形图?另外,是否有办法让折线图中的某一点粗体显示,如同一个重要值的更明显的点?.NET Charting 4.0 - 使线条代替酒吧
你知道我怎么可以把一个标签两个Y和X轴? – slandau 2011-01-06 18:39:38