Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfStockChart - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfStockChart

    Stock Chart is a well-crafted, easy-to-use financial charting package to track and visualize the stock price of any company over a specific period using charting (such as Candlestick chart, OHLC, etc) and range tools.

    Inheritance
    System.Object
    SfBaseComponent
    SfDataBoundComponent
    SfStockChart
    Inherited Members
    SfDataBoundComponent.SetDataManager<T>(Object)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SfStockChart : SfDataBoundComponent

    Constructors

    SfStockChart()

    Declaration
    public SfStockChart()

    Properties

    Background

    The background color of the stock chart that accepts value in hex and rgba as a valid CSS color string.

    Declaration
    public string Background { get; set; }
    Property Value
    Type Description
    System.String

    ChildContent

    Gets and sets the content of the UI element.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    DataSource

    Specifies the data source for the stock chart. It can be an array of JSON objects or an instance of DataManager.

    Declaration
    public IEnumerable<object> DataSource { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.Object>

    EnableCustomRange

    Defines the custom range.

    Declaration
    public bool EnableCustomRange { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnablePeriodSelector

    It specifies whether the period selector to be rendered in financial chart.

    Declaration
    public bool EnablePeriodSelector { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableSelector

    It specifies whether the range navigator to be rendered in financial chart.

    Declaration
    public bool EnableSelector { get; set; }
    Property Value
    Type Description
    System.Boolean

    ExportType

    It specifies the types of export options in financial chart.

    Declaration
    public List<ExportType> ExportType { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<ExportType>

    Height

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

    Declaration
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    ID

    Gets and sets the identification of the component.

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    IndicatorType

    It specifies the types of indicators in financial chart.

    Declaration
    public List<TechnicalIndicators> IndicatorType { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TechnicalIndicators>

    IsMultiSelect

    If set true, enables the multi-selection in chart. It requires SelectionMode set to be Point | Series | or Cluster.

    Declaration
    public bool IsMultiSelect { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsSelect

    If set true, enables the animation in chart.

    Declaration
    public bool IsSelect { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsTransposed

    It specifies whether the stock chart should be render in transposed manner or not.

    Declaration
    public bool IsTransposed { get; set; }
    Property Value
    Type Description
    System.Boolean

    SelectionMode

    Specifies whether series or data point has to be selected. They are, None: Disables the selection. Series: Selects a series. Point: Selects a point. Cluster: Selects a cluster of point. DragXY: Selects points by dragging with respect to both horizontal and vertical axes. DragX: Selects points by dragging with respect to horizontal axis. DragY: Selects points by dragging with respect to vertical axis.

    Declaration
    public SelectionMode SelectionMode { get; set; }
    Property Value
    Type Description
    SelectionMode

    SeriesType

    It specifies the types of series in financial chart.

    Declaration
    public List<ChartSeriesType> SeriesType { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<ChartSeriesType>

    Theme

    Specifies the theme for the stock chart.

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

    Title

    Title of the stock chart.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    System.String

    TrendlineType

    It specifies the types of trendline types in financial chart.

    Declaration
    public List<TrendlineTypes> TrendlineType { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TrendlineTypes>

    Width

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

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    ExportAsync(ExportType, String, Nullable<PdfPageOrientation>)

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

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

    Specifies the export type for the rendered stock chart.

    System.String fileName

    Specifies the filename.

    System.Nullable<Syncfusion.PdfExport.PdfPageOrientation> orientation

    Specifies the portrait or landscape orientation of the page.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    OnAfterRenderAsync(Boolean)

    Method invoked after each time the component has been rendered.

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender

    Represents the first render.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Overrides
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent in the render tree and the incoming values have been assigned to properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Overrides
    SfDataBoundComponent.OnParametersSetAsync()

    PrintAsync()

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

    Declaration
    public Task PrintAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Refresh()

    Method helps to re-render the stock chart.

    Declaration
    public void Refresh()

    ShouldRender()

    Declaration
    protected override bool ShouldRender()
    Returns
    Type Description
    System.Boolean

    UpdateStockChart()

    Method helps to re-render the stock chart UI element.

    Declaration
    public void UpdateStockChart()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved