Spread Silverlight Documentation
ChartType Property (SpreadDataSeries)
Example 


Gets or sets the type of the chart.
Syntax
'Declaration
 
Public Property ChartType As SpreadChartType
'Usage
 
Dim instance As SpreadDataSeries
Dim value As SpreadChartType
 
instance.ChartType = value
 
value = instance.ChartType
public SpreadChartType ChartType {get; set;}

Property Value

The type of the chart.
Example
This example sets the ChartType property.
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries aseries = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries();
aseries.Name = "1234";
aseries.Values.Add(2);
aseries.Values.Add(4);
aseries.Values.Add(3);
aseries.Values.Add(5);
aseries.Fill = new SolidColorBrush(System.Windows.Media.Colors.Red);
aseries.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked;
aseries.DataLabelSettings = new GrapeCity.Windows.SpreadSheet.Data.DataLabelSettings() { ShowValue = true, ShowBubbleSize = true };
aseries.DataLabelStyle.Fill = new SolidColorBrush(System.Windows.Media.Colors.Green);
GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart();
chart.DataSeries.Add(aseries);
chart.Name = "name1";
this.gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim aseries As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries()
aseries.Name = "1234"
aseries.Values.Add(2)
aseries.Values.Add(4)
aseries.Values.Add(3)
aseries.Values.Add(5)
aseries.Fill = New SolidColorBrush(System.Windows.Media.Colors.Red)
aseries.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked
aseries.DataLabelSettings = New GrapeCity.Windows.SpreadSheet.Data.DataLabelSettings() With {.ShowValue = True, .ShowBubbleSize = True}
aseries.DataLabelStyle.Fill = New SolidColorBrush(System.Windows.Media.Colors.Green)
Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart()
chart.DataSeries.Add(aseries)
chart.Name = "name1"
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SpreadDataSeries Class
SpreadDataSeries Members

 

 


Copyright © GrapeCity, inc. All rights reserved.