Syncfusion.Chart.Wpf
Example 


Syncfusion.Windows.Chart Namespace > ChartAxis Class : SmallTicksPerInterval Property

SmallTicksPerInterval Property (ChartAxis)

Gets or sets the small ticks per interval. This is a dependency property.
Syntax
'Declaration
 
<CategoryAttribute("Appearance")>
Public Property SmallTicksPerInterval As Integer
'Usage
 
Dim instance As ChartAxis
Dim value As Integer
 
instance.SmallTicksPerInterval = value
 
value = instance.SmallTicksPerInterval
[Category("Appearance")]
public int SmallTicksPerInterval {get; set;}

Property Value

The small ticks per interval.
Example
C#: XAML:
public Window1()
{
InitializeComponent();
//Creating new chart instance.
Chart chart = new Chart();
//Adding a new area.
chart.Areas.Add(new ChartArea());
//Creating datapoints collection.
ChartListData data = new ChartListData();
data.Add(new ChartPoint(1, 1));
data.Add(new ChartPoint(2, 2));
data.Add(new ChartPoint(3, 3));
data.Add(new ChartPoint(4, 4));
//Creating series.
ChartSeries series = new ChartSeries();
//Assigning points.
series.Data = data;
chart.Areas[0].Series.Add(series);
//Setting small ticks per interval value.
chart.Areas[0].PrimaryAxis.SmallTicksPerInterval = 2;
//Assigning window's content property.
this.Content = chart;
}
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Width="300" Height="300">
<!--Adding chart control to window's content-->
<syncfusion:Chart
xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
<syncfusion:ChartArea>
<syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
<syncfusion:ChartArea.PrimaryAxis>
<!--Setting small ticks per interval value.-->
<syncfusion:ChartAxis SmallTicksPerInterval="2"/>
</syncfusion:ChartArea.PrimaryAxis>
</syncfusion:ChartArea>
</syncfusion:Chart>
</Window>
AssemblyVersion

Syncfusion.Chart.Wpf: 17.3460.0.14

See Also