Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / SpreadChartType Enumeration
Example Example


In This Topic
    SpreadChartType Enumeration
    In This Topic
    Specifies the chart type.
    Syntax
    'Declaration
     
    Public Enum SpreadChartType 
       Inherits System.Enum
    'Usage
     
    Dim instance As SpreadChartType
    public enum SpreadChartType : System.Enum 
    Members
    MemberDescription
    AreaSpecifies the area chart.
    AreaStackedSpecifies the stacked area chart.
    AreaStacked100pcSpecifies the 100% stacked area chart.
    BarClusteredSpecifies the clustered bar chart.
    BarStackedSpecifies the stacked bar chart.
    BarStacked100pcSpecifies the 100% stacked bar chart.
    BubbleSpecifies the bubble chart.
    ColumnClusteredSpecifies the clustered column chart.
    ColumnStackedSpecifies the stacked column chart.
    ColumnStacked100pcSpecifies the 100% stacked column chart.
    LineSpecifies the line chart.
    LineSmoothedSpecifies the smooth line chart.
    LineStackedSpecifies the stacked line chart.
    LineStacked100pcSpecifies the 100% stacked line chart.
    LineStacked100pcWithMarkersSpecifies the 100% stacked line chart with markers.
    LineStackedWithMarkersSpecifies the stacked line chart with markers.
    LineWithMarkersSpecifies the line chart with markers.
    LineWithMarkersSmoothedSpecifies the smooth line chart with markers.
    NoneSpecifies none.
    PieSpecifies the pie chart.
    PieDoughnutSpecifies the doughnut chart.
    PieExplodedSpecifies the exploded pie chart.
    PieExplodedDoughnutSpecifies the exploded doughnut chart.
    RadarSpecifies the radar chart.
    RadarFilledSpecifies the filled radar chart.
    RadarWithMarkersSpecifies the radar chart with markers.
    ScatterSpecifies the scatter chart.
    ScatterLinesSpecifies the line scatter chart.
    ScatterLinesSmoothedSpecifies the smooth line scatter chart.
    ScatterLinesSmoothedWithMarkersSpecifies the smooth line scatter chart with markers.
    ScatterLinesWithMarkersSpecifies the line scatter chart with markers.
    StockHighLowOpenCloseSpecifies the high low open close stock chart.
    Example
    This example uses the SpreadChartType enumeration.
    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.SizeValues.Add(1.0);
    series0.SizeValues.Add(2.0);
    series0.SizeValues.Add(1.0);
    series0.SizeValues.Add(2.0);
    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.ChartTitle label = new GrapeCity.Xaml.SpreadSheet.Data.ChartTitle();
    label.Text = "XYZ Point Chart";
    label.FontSize = 10;
    label.FontFamily = new FontFamily("Tahoma");
    GrapeCity.Xaml.SpreadSheet.Data.Legend l = new GrapeCity.Xaml.SpreadSheet.Data.Legend();
    l.Alignment = GrapeCity.Xaml.SpreadSheet.Data.LegendAlignment.TopLeft;
    GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart();
    chart.ChartTitle = label;
    chart.Legend = l;
    chart.DataSeries.Add(series0);
    chart.DataSeries.Add(series1);
    chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Bubble;
    chart.Name = "name1";
    this.gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
    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.SizeValues.Add(1.0)
    series0.SizeValues.Add(2.0)
    series0.SizeValues.Add(1.0)
    series0.SizeValues.Add(2.0)
    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 label As New GrapeCity.Xaml.SpreadSheet.Data.ChartTitle()
    label.Text = "XYZ Point Chart"
    label.FontSize = 10
    label.FontFamily = New FontFamily("Tahoma")
    Dim l As New GrapeCity.Xaml.SpreadSheet.Data.Legend()
    l.Alignment = GrapeCity.Xaml.SpreadSheet.Data.LegendAlignment.TopLeft
    Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart()
    chart.ChartTitle = label
    chart.Legend = l
    chart.DataSeries.Add(series0)
    chart.DataSeries.Add(series1)
    chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Bubble
    chart.Name = "name1"
    GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType

    See Also