回复 1楼tan156的帖子
可以通过 LineSeries 下的 PointMaker 属性设置,测试代码如下:
- FarPoint.Web.Chart.BarSeries series0 = new FarPoint.Web.Chart.BarSeries();
- series0.Values.Add(8.0);
- series0.Values.Add(4.0);
- series0.Values.Add(2.0);
- series0.Values.Add(1.0);
- FarPoint.Web.Chart.LineSeries series1 = new FarPoint.Web.Chart.LineSeries();
- series1.PointMarker = new FarPoint.Web.Chart.BuiltinMarker(FarPoint.Web.Chart.MarkerShape.Circle, 7.0f);
- series1.Values.Add(8.0);
- series1.Values.Add(12.0);
- series1.Values.Add(14.0);
- series1.Values.Add(15.0);
- FarPoint.Web.Chart.YPlotArea plotArea = new FarPoint.Web.Chart.YPlotArea();
- plotArea.Location = new System.Drawing.PointF(0.2f, 0.2f);
- plotArea.Size = new System.Drawing.SizeF(0.6f, 0.6f);
- plotArea.Series.Add(series0);
- plotArea.Series.Add(series1);
- FarPoint.Web.Chart.LabelArea labelArea = new FarPoint.Web.Chart.LabelArea();
- labelArea.Location = new System.Drawing.PointF(0.5f, 0.02f);
- labelArea.AlignmentX = 0.5f;
- labelArea.AlignmentY = 0.0f;
- labelArea.Text = "Pareto Chart";
- FarPoint.Web.Chart.ChartModel model = new FarPoint.Web.Chart.ChartModel();
- model.LabelAreas.Add(labelArea);
- model.PlotAreas.Add(plotArea);
- FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart();
- chart.Model = model;
- FpSpread1.Sheets[0].Charts.Add(chart);
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |