Class Chart3DPrimaryXAxis
Gets or sets instance of Chart3DPrimaryXAxis which is used to customize the primary x-axis of the SfChart3D.
Inherited Members
Namespace: Syncfusion.Blazor.Chart3D
Assembly: Syncfusion.Blazor.dll
Syntax
public class Chart3DPrimaryXAxis : Chart3DAxis, IChart3DSubcomponentTracker, IChart3DElement
Remarks
Use this class to customize the primary x-axis of the SfChart3D such as axis interval, range, and label settings.
Examples
<SfChart3D>
<Chart3DSeriesCollection>
<Chart3DSeries XName="Browser" YName="Users" DataSource="@StatisticsDetails">
</Chart3DSeries>
</Chart3DSeriesCollection>
<Chart3DPrimaryXAxis Title="Browser Name" LabelFormat="{value} Month" Format="MMM" IsIndexed="false" MaximumLabels="5" OpposedPosition="false" RangePadding="ChartRangePadding.None"
ValueType="Syncfusion.Blazor.Chart3D.ValueType.Category" IntervalType="IntervalType.Months" Interval="2" Name="PrimaryXAxis" Visible="true" MinorTicksPerInterval="1" Minimum="0.5"
Maximum="8" LogBase="100" ColumnIndex="0" RowIndex="0" Span="1" MaxLabelWidth="50" EnableTrim="true" EdgeLabelPlacement="EdgeLabelPlacement.Hide"
LabelPlacement="LabelPlacement.BetweenTicks" LabelIntersectAction="LabelIntersectAction.Rotate45" LabelRotationAngle="45" LabelPadding="10" TitlePadding="15" IsInversed="false"
PlotOffset="10" PlotOffsetBottom="5" PlotOffsetLeft="5" PlotOffsetRight="5" PlotOffsetTop="5" DesiredIntervals="5" TitleRotationAngle="90" StartFromZero="true">
<Chart3DAxisMajorGridLines Color="red" Width="2"></Chart3DAxisMajorGridLines>
<Chart3DAxisMajorTickLines Color="red" Width="1" Height="15"></Chart3DAxisMajorTickLines>
<Chart3DMinorGridLines Color="blue" Width="0.5"></Chart3DMinorGridLines>
<Chart3DAxisMinorTickLines Color="blue" Width="0.5" Height="10"></Chart3DAxisMinorTickLines>
<Chart3DAxisTitleStyle FontFamily="Arial" Color="Gray" FontStyle="Bold" FontWeight="600" FontSize="14px" Opacity="0.9" TextOverflow="TextOverflow.Wrap"></Chart3DAxisTitleStyle>
</Chart3DPrimaryXAxis>
</SfChart3D>
@code {
public class Statistics
{
public string Browser { get; set; }
public double Users { get; set; }
public string Color { get; set; }
}
public List<Statistics> StatisticsDetails = new List<Statistics>
{
new Statistics { Browser = "Chrome", Users = 65.3, Color = "red" },
new Statistics { Browser = "Safari", Users = 18.3, Color = "blue" },
new Statistics { Browser = "Edge", Users = 5, Color = "green" },
new Statistics { Browser = “Firefox”, Users = 3, Color = "orange" },
new Statistics { Browser = “Samsung Internet”, Users = 2.6, Color = "yellow" },
new Statistics { Browser = “Opera”, Users = 2.4, Color = "pink" },
};
}
Constructors
Chart3DPrimaryXAxis()
Declaration
public Chart3DPrimaryXAxis()
Methods
GetName()
Declaration
public override string GetName()
Returns
Type |
---|
System.String |