MESCIUS SPREAD for ASP.NET 10.0J
Count プロパティ (SunburstSeries)

系列に含まれるポイントの数を取得します。
構文
'Declaration
 
Public Overrides ReadOnly Property Count As Integer
public override int Count {get;}
次のサンプルコードは、サンバースト図を作成します。
FarPoint.Web.Chart.SunburstSeries series = new FarPoint.Web.Chart.SunburstSeries();
series.Values.AddRange(new double[] { 3.5, 1.2, 0.8, 0.6, 0.5, 1.7, 1.1 });
series.Borders.AddRange(new FarPoint.Web.Chart.Line[] { new FarPoint.Web.Chart.SolidLine(Color.Black), null, null, null, null, null, null, null, new FarPoint.Web.Chart.SolidLine(Color.Yellow) });
FarPoint.Web.Chart.StringCollectionItem collection1 = new FarPoint.Web.Chart.StringCollectionItem();
collection1.AddRange(new String[] { "1st", "", "", "", "", "", "2nd" });
FarPoint.Web.Chart.StringCollectionItem collection2 = new FarPoint.Web.Chart.StringCollectionItem();
collection2.AddRange(new String[] { "Jan", "Feb", "", "", "", "Mar", "Apr" });
FarPoint.Web.Chart.StringCollectionItem collection3 = new FarPoint.Web.Chart.StringCollectionItem();
collection3.AddRange(new String[] { "", "Week1", "Week2", "Week3", "Week4", "", "" });
series.CategoryNames.AddRange(new FarPoint.Web.Chart.StringCollectionItem[] { collection1, collection2, collection3 });
FarPoint.Web.Chart.SunburstPlotArea plotArea = new FarPoint.Web.Chart.SunburstPlotArea();
plotArea.Location = new PointF(0.2f, 0.2f);
plotArea.Size = new SizeF(0.6f, 0.6f);
plotArea.Series.Add(series);
FarPoint.Web.Chart.ChartModel model = new FarPoint.Web.Chart.ChartModel();
model.PlotAreas.Add(plotArea);
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart();
chart.Width = 500;
chart.Height = 500;
chart.Model = model;
FpSpread1.Sheets[0].Charts.Add(chart);
TextBox1.Text = series.Count.ToString();
Dim series As New FarPoint.Web.Chart.SunburstSeries()
series.Values.AddRange(New Double() {3.5, 1.2, 0.8, 0.6, 0.5, 1.7, 1.1})
series.Borders.AddRange(New FarPoint.Web.Chart.Line() {New FarPoint.Web.Chart.SolidLine(Color.Black), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, New FarPoint.Web.Chart.SolidLine(Color.Yellow)})
Dim collection1 As New FarPoint.Web.Chart.StringCollectionItem()
collection1.AddRange(New String() {"1st", "", "", "", "", "", "2nd"})
Dim collection2 As New FarPoint.Web.Chart.StringCollectionItem()
collection2.AddRange(New String() {"Jan", "Feb", "", "", "", "Mar", "Apr"})
Dim collection3 As New FarPoint.Web.Chart.StringCollectionItem()
collection3.AddRange(New String() {"", "Week1", "Week2", "Week3", "Week4", "", ""})
series.CategoryNames.AddRange(New FarPoint.Web.Chart.StringCollectionItem() {collection1, collection2, collection3})
Dim plotArea As New FarPoint.Web.Chart.SunburstPlotArea()
plotArea.Location = New PointF(0.2F, 0.2F)
plotArea.Size = New SizeF(0.6F, 0.6F)
plotArea.Series.Add(series)
Dim model As New FarPoint.Web.Chart.ChartModel()
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.Width = 500
chart.Height = 500
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)
TextBox1.Text = series.Count.ToString()
参照

SunburstSeries クラス
SunburstSeries メンバ

 

 


© MESCIUS inc. All rights reserved.