alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class SfBulletChart<TValue>

    Bullet Chart control is used to display the one or more measures and compares them to a target value with built-in features like orientation, qualitative ranges, multiple measures, labels, tooltip and animation.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    SfBulletChart<TValue>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.GetEffectivePlatform()
    SfBaseComponent.GetMainComponentPlatform()
    SfBaseComponent.IsMainLicenseComponent()
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicense()
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SfBulletChart<TValue> : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Type Parameters
    Name Description
    TValue

    Represents the generic data type of the bullet chart control.

    Constructors

    SfBulletChart()

    Declaration
    public SfBulletChart()

    Properties

    CategoryField

    It defines the category for the data source.

    Declaration
    [Parameter]
    public string CategoryField { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. A string value representing the category field in the data source.

    DataSource

    default value of multiple data bullet chart.

    Declaration
    [Parameter]
    public IEnumerable<TValue> DataSource { get; set; }
    Property Value
    Type
    IEnumerable<TValue>

    EnableGroupSeparator

    default value for enableGroupSeparator.

    Declaration
    [Parameter]
    public bool EnableGroupSeparator { get; set; }
    Property Value
    Type Description
    bool

    true, if the grouping separator can be enabled. Otherwise, false.

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    [Parameter]
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    bool

    true, if the right to left direction can be enabled for the component. The default value is false.

    Format

    Sets and gets format for the bullet chart axis and data label.

    Declaration
    [Parameter]
    public string Format { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    Height

    The height of the bullet chart as a string accepts input both as '100px' or '100%'. If specified as '100%, bullet chart renders to the full height of its parent element.

    Declaration
    [Parameter]
    public string Height { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is 100%.

    ID

    Set the id string for the bullet chart component.

    Declaration
    [Parameter]
    public string ID { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value.

    Interval

    Specifies the interval for an scale.

    Declaration
    [Parameter]
    public double Interval { get; set; }
    Property Value
    Type Description
    double

    A double value representing the interval for the scale. The default value is -1.

    LabelFormat

    Specifies the format of the bullet chart axis labels.

    Declaration
    [Parameter]
    public string LabelFormat { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value, The default value is empty.

    LabelPosition

    specifies the axis label position of the bullet chart.

    Declaration
    [Parameter]
    public LabelsPlacement LabelPosition { get; set; }
    Property Value
    Type Description
    LabelsPlacement

    A value of LabelsPlacement enumeration that specifies the position of axis labels in the component. The default value is Outside.

    Maximum

    Specifies the maximum range of an scale.

    Declaration
    [Parameter]
    public double Maximum { get; set; }
    Property Value
    Type Description
    double

    A double value representing the maximum range of the scale. The default value is -1.

    Minimum

    Specifies the minimum range of an scale.

    Declaration
    [Parameter]
    public double Minimum { get; set; }
    Property Value
    Type Description
    double

    A double value representing the minimum range of the scale. The default value is -1.

    MinorTicksPerInterval

    specifies the interval of minor ticks.

    Declaration
    [Parameter]
    public double MinorTicksPerInterval { get; set; }
    Property Value
    Type Description
    double

    A double value representing the interval of minor ticks. The default value is 4.

    OpposedPosition

    If set to true, the axis will render at the opposite side of its default position.

    Declaration
    [Parameter]
    public bool OpposedPosition { get; set; }
    Property Value
    Type Description
    bool

    true, if the opposed position can be enabled. Otherwise, false. The default value is false.

    Orientation

    Orientation of the scale.

    Declaration
    [Parameter]
    public OrientationType Orientation { get; set; }
    Property Value
    Type Description
    OrientationType

    A value of the OrientationType enumeration that specifies the orientation of scale. The default value is Horizontal.

    Subtitle

    Specifies the sub title of the bullet chart.

    Declaration
    [Parameter]
    public string Subtitle { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    TabIndex

    TabIndex value for the bullet chart.

    Declaration
    [Parameter]
    public int TabIndex { get; set; }
    Property Value
    Type Description
    int

    An integer value representing the tab index of bullet chart. The default value is 1.

    TargetColor

    Default stroke of comparative measure.

    Declaration
    [Parameter]
    public string TargetColor { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is #191919.

    TargetField

    The DataSource field that contains the target value.

    Declaration
    [Parameter]
    public string TargetField { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    TargetTypes

    The DataSource field that contains the target value.

    Declaration
    [Parameter]
    public List<TargetType> TargetTypes { get; set; }
    Property Value
    Type Description
    List<TargetType>

    A list of TargetType enumeration values that specifies the type of target options available in bullet chart. The available target values are Rect, Cross and Circle.

    TargetWidth

    Options for customizing comparative bar color bullet chart.

    Declaration
    [Parameter]
    public double TargetWidth { get; set; }
    Property Value
    Type Description
    double

    A double value representing the target width for the comparative measure in bullet chart. The default value is 5.

    Theme

    Specifies the theme for the bullet chart.

    Declaration
    [Parameter]
    public Theme Theme { get; set; }
    Property Value
    Type Description
    Theme

    Accepts the value from the Theme enum. The default value is Bootstrap4.

    TickPosition

    specifies the tick position of the bullet chart.

    Declaration
    [Parameter]
    public TickPosition TickPosition { get; set; }
    Property Value
    Type Description
    TickPosition

    One of the TickPosition enumeration that specifies the position of tick in component. The default value is Outside.

    Title

    Specifies the title of the bullet chart.

    Declaration
    [Parameter]
    public string Title { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    TitlePosition

    Sets the title position of bullet chart.

    Declaration
    [Parameter]
    public TextPosition TitlePosition { get; set; }
    Property Value
    Type Description
    TextPosition

    One of the TextPosition enumeration that specifies the position of title in the component. The default value is Top.

    Type

    Default type on feature measure.

    Declaration
    [Parameter]
    public FeatureType Type { get; set; }
    Property Value
    Type Description
    FeatureType

    One of the FeatureType enumeration that specifies the type of feature in the component. The default value is Rect.

    ValueField

    The DataSource field that contains the value value.

    Declaration
    [Parameter]
    public string ValueField { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    ValueFill

    Default stroke color of feature measure.

    Declaration
    [Parameter]
    public string ValueFill { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value that represents the color of the stroke.

    ValueHeight

    Options for customizing feature bar height of the bullet chart.

    Declaration
    [Parameter]
    public double ValueHeight { get; set; }
    Property Value
    Type Description
    double

    Accepts the double value representing the height of the value element. The default value is 6.

    Width

    The width of the bullet chart as a string accepts input as both like '100px' or '100%'. If specified as '100%, bullet chart renders to the full width of its parent element.

    Declaration
    [Parameter]
    public string Width { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value that represents the width of the bullet chart.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    ExportAsync(ExportType, string, PdfPageOrientation?)

    The method is used to perform the export functionality for the rendered bullet chart.

    Declaration
    public Task ExportAsync(ExportType type, string fileName, PdfPageOrientation? orientation = null)
    Parameters
    Type Name Description
    ExportType type

    Specifies the export type for the rendered bullet chart.

    string fileName

    Specifies the filename.

    PdfPageOrientation? orientation

    Specifies the portrait or landscape orientation of the page.

    Returns
    Type Description
    Task

    Returns base64 string.

    PrintAsync(ElementReference)

    The method is used to perform the print functionality in bullet chart.

    Declaration
    public Task PrintAsync(ElementReference elementRef = default)
    Parameters
    Type Name Description
    ElementReference elementRef
    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved