Class Chart3DPrimaryYAxis
Gets or sets instance of Chart3DPrimaryYAxis which is used to customize the primary y-axis of the SfChart3D.
Inherited Members
Namespace: Syncfusion.Blazor.Chart3D
Assembly: Syncfusion.Blazor.dll
Syntax
public class Chart3DPrimaryYAxis : Chart3DAxis, IChart3DSubcomponentTracker, IChart3DElement
Remarks
Use this class to customize the primary y-axis of the SfChart3D such as axis interval, range, and label settings.
Examples
<SfChart3D>
<Chart3DSeriesCollection>
<Chart3DSeries XName="Browser" YName="Users" DataSource="@StatisticsDetails">
</Chart3DSeries>
</Chart3DSeriesCollection>
<Chart3DPrimaryYAxis Title="Users" ValueType="Syncfusion.Blazor.Chart3D.ValueType.Double" Interval="10">
<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>
</Chart3DPrimaryYAxis>
</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
Chart3DPrimaryYAxis()
Declaration
public Chart3DPrimaryYAxis()
Methods
GetName()
Declaration
public override string GetName()
Returns
Type |
---|
System.String |