GrapeCity.Xaml.SpreadSheet.Data
SizeFormula Property
Example 


Gets or sets the size formula.
Syntax
'Declaration
 
Public Property SizeFormula As String
'Usage
 
Dim instance As SpreadBubbleSeries
Dim value As String
 
instance.SizeFormula = value
 
value = instance.SizeFormula
public string SizeFormula {get; set;}

Property Value

The size formula.
Example
This example uses the SizeFormula property to specify the size of the bubbles.
GcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object[,] { { 1 }, { 2 }, { 1 }, { 3 } });
GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries series0 = new GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries();
series0.Name = "Series 0";
series0.XValues.Add(1.0);
series0.XValues.Add(2.0);
series0.XValues.Add(4.0);
series0.XValues.Add(8.0);
series0.Values.Add(2.0);
series0.Values.Add(4.0);
series0.Values.Add(3.0);
series0.Values.Add(5.0);
series0.SizeFormula = "Sheet1!$A$1:$A$4";
GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries series1 = new GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries();
series1.Name = "Series 1";
series1.XValues.Add(1.0);
series1.XValues.Add(3.0);
series1.XValues.Add(5.0);
series1.XValues.Add(8.0);
series1.Values.Add(1.0);
series1.Values.Add(2.0);
series1.Values.Add(4.0);
series1.Values.Add(8.0);
series1.SizeValues.Add(4.0);
series1.SizeValues.Add(3.0);
series1.SizeValues.Add(4.0);
series1.SizeValues.Add(3.0);
GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart();
chart.DataSeries.Add(series0);
chart.DataSeries.Add(series1);
chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Bubble;
chart.Name = "name1";
GcSpreadSheet1.ActiveSheet.Charts.Add(chart);
GcSpreadSheet1.ActiveSheet.SetArray(0, 0, New Object(,) {{1}, {2}, {1}, {3}})
Dim series0 As New GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries()
series0.Name = "Series 0"
series0.XValues.Add(1.0)
series0.XValues.Add(2.0)
series0.XValues.Add(4.0)
series0.XValues.Add(8.0)
series0.Values.Add(2.0)
series0.Values.Add(4.0)
series0.Values.Add(3.0)
series0.Values.Add(5.0)
series0.SizeFormula = "Sheet1!$A$1:$A$4"
Dim series1 As New GrapeCity.Xaml.SpreadSheet.Data.SpreadBubbleSeries()
series1.Name = "Series 1"
series1.XValues.Add(1.0)
series1.XValues.Add(3.0)
series1.XValues.Add(5.0)
series1.XValues.Add(8.0)
series1.Values.Add(1.0)
series1.Values.Add(2.0)
series1.Values.Add(4.0)
series1.Values.Add(8.0)
series1.SizeValues.Add(4.0)
series1.SizeValues.Add(3.0)
series1.SizeValues.Add(4.0)
series1.SizeValues.Add(3.0)      
Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart()
chart.DataSeries.Add(series0)
chart.DataSeries.Add(series1)
chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Bubble
chart.Name = "name1"
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SpreadBubbleSeries Class
SpreadBubbleSeries Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options