FarPoint.Win.Chart アセンブリ > FarPoint.Win.Chart 名前空間 > PieSeries クラス : Values プロパティ |
'Declaration Public ReadOnly Property Values As DoubleCollection
'使用法 Dim instance As PieSeries Dim value As DoubleCollection value = instance.Values
public DoubleCollection Values {get;}
PieSeries series = new PieSeries(); series.SeriesName = "Series 0"; series.Values.Add(1.0); series.Values.Add(2.0); series.Values.Add(4.0); series.Values.Add(8.0); PiePlotArea plotArea = new PiePlotArea(); plotArea.Location = new PointF(0.2f, 0.2f); plotArea.Size = new SizeF(0.6f, 0.6f); plotArea.series.Add(series); LabelArea label = new LabelArea(); label.Text = "Pie Chart"; label.Location = new PointF(0.5f, 0.02f); label.AlignmentX = 0.5f; label.AlignmentY = 0.0f; LegendArea legend = new LegendArea(); legend.Location = new PointF(0.98f, 0.5f); legend.AlignmentX = 1.0f; legend.AlignmentY = 0.5f; ChartModel model = new ChartModel(); model.LabelAreas.Add(label); model.LegendAreas.Add(legend); model.PlotAreas.Add(plotArea); chart2DControl1.Model = model;
PieSeries series = new PieSeries(); series.SeriesName = "Series 0"; series.Values.Add(1.0); series.Values.Add(2.0); series.Values.Add(4.0); series.Values.Add(8.0); PiePlotArea plotArea = new PiePlotArea(); plotArea.Location = new PointF(0.2f, 0.2f); plotArea.Size = new SizeF(0.6f, 0.6f); plotArea.series.Add(series); LabelArea label = new LabelArea(); label.Text = "Pie Chart"; label.Location = new PointF(0.5f, 0.02f); label.AlignmentX = 0.5f; label.AlignmentY = 0.0f; LegendArea legend = new LegendArea(); legend.Location = new PointF(0.98f, 0.5f); legend.AlignmentX = 1.0f; legend.AlignmentY = 0.5f; ChartModel model = new ChartModel(); model.LabelAreas.Add(label); model.LegendAreas.Add(legend); model.PlotAreas.Add(plotArea); chart2DControl1.Model = model;