Spread WPF Documentation
AxisX Property (SpreadChart)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadChart Class : AxisX Property
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.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.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.Windows.SpreadSheet.Data.ChartTitle();
chart.AxisX.Title.Text = "-1234";
//stroke
chart.AxisX.Title.StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash;
chart.AxisX.Title.StrokeThickness = 2;
chart.AxisX.Title.Stroke = new SolidColorBrush(Colors.Green);
//file
chart.AxisX.Title.Fill = new SolidColorBrush(Colors.Red);
 //font
chart.AxisX.Title.FontSize = 12;
chart.AxisX.Title.FontFamily = FontFamily;
chart.AxisX.Title.FontStyle = FontStyles.Italic;
chart.AxisX.Title.FontWeight = FontWeights.Bold;
chart.AxisX.Title.FontStretch = FontStretches.ExtraExpanded;
chart.AxisX.Title.Foreground = new SolidColorBrush(Colors.Blue);

gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.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.Windows.SpreadSheet.Data.ChartTitle()
chart.AxisX.Title.Text = "-1234"
'stroke
chart.AxisX.Title.StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash
chart.AxisX.Title.StrokeThickness = 2
chart.AxisX.Title.Stroke = New SolidColorBrush(Colors.Green)
'file
chart.AxisX.Title.Fill = New SolidColorBrush(Colors.Red)
'font
chart.AxisX.Title.FontSize = 12
chart.AxisX.Title.FontFamily = FontFamily
chart.AxisX.Title.FontStyle = FontStyles.Italic
chart.AxisX.Title.FontWeight = FontWeights.Bold
chart.AxisX.Title.FontStretch = FontStretches.ExtraExpanded
chart.AxisX.Title.Foreground = New SolidColorBrush(Colors.Blue)

GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
See Also

Reference

SpreadChart Class
SpreadChart Members