GrapeCity.Xaml.SpreadSheet.Data
AxisX Property (SpreadChart)
Example 


Gets or sets the x-axis.
Syntax
'Declaration
 
Public Property AxisX As Axis
'Usage
 
Dim instance As SpreadChart
Dim value As Axis
 
instance.AxisX = value
 
value = instance.AxisX
public Axis AxisX {get; set;}

Property Value

The x-axis of the chart.
Example
This example sets the AxisX property.
GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0, 0, 200, 200);
gcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object[,] { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 }, { 8 }, { 9 }, { 10 } });

chart.AxisX.Title = new GrapeCity.Xaml.SpreadSheet.Data.ChartTitle();
chart.AxisX.Title.Text = "-1234";
//stroke
chart.AxisX.Title.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash;
chart.AxisX.Title.StrokeThickness = 2;
chart.AxisX.Title.Stroke = new SolidColorBrush(Windows.UI.Colors.Green);
//file
chart.AxisX.Title.Fill = new SolidColorBrush(Windows.UI.Colors.Red);
//font
chart.AxisX.Title.FontSize = 12;
chart.AxisX.Title.FontFamily = FontFamily;
chart.AxisX.Title.FontStyle = Windows.UI.Text.FontStyle.Italic;
chart.AxisX.Title.FontWeight = Windows.UI.Text.FontWeights.Bold;
chart.AxisX.Title.FontStretch = Windows.UI.Text.FontStretch.ExtraExpanded;
chart.AxisX.Title.Foreground = new SolidColorBrush(Windows.UI.Colors.Blue);

gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0, 0, 200, 200)
GcSpreadSheet1.ActiveSheet.SetArray(0, 0, New Object(,) {{1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}})

chart.AxisX.Title = New GrapeCity.Xaml.SpreadSheet.Data.ChartTitle()
chart.AxisX.Title.Text = "-1234"
'stroke
chart.AxisX.Title.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash
chart.AxisX.Title.StrokeThickness = 2
chart.AxisX.Title.Stroke = New SolidColorBrush(Windows.UI.Colors.Green)
'file
chart.AxisX.Title.Fill = New SolidColorBrush(Windows.UI.Colors.Red)
'font
chart.AxisX.Title.FontSize = 12
chart.AxisX.Title.FontFamily = FontFamily
chart.AxisX.Title.FontStyle = Windows.UI.Text.FontStyle.Italic
chart.AxisX.Title.FontWeight = Windows.UI.Text.FontWeights.Bold
chart.AxisX.Title.FontStretch = Windows.UI.Text.FontStretch.ExtraExpanded
chart.AxisX.Title.Foreground = New SolidColorBrush(Windows.UI.Colors.Blue)

GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SpreadChart Class
SpreadChart Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options