Class TwCandlestickChart
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
A candlestick chart: for each period, a body between the opening and closing value and a wick reaching the high and the low. Set Kind to Ohlc for an OHLC chart.
public class TwCandlestickChart : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
- Inheritance
-
TwCandlestickChart
- Implements
- Inherited Members
Remarks
Rising and falling periods differ by color, and the legend and tooltips name the direction, so it never relies on color alone.
Constructors
TwCandlestickChart()
public TwCandlestickChart()
Properties
FallingLabel
Gets or sets the legend label for a period that closed below its open. Defaults to the localized Chart_Falling text ("Falling").
[Parameter]
public string? FallingLabel { get; set; }
Property Value
Items
Gets or sets the periods to plot, in order.
[Parameter]
public IReadOnlyList<ChartOhlc> Items { get; set; }
Property Value
Kind
Gets or sets whether each period is drawn as a candle or as open and close ticks.
[Parameter]
public CandlestickStyle Kind { get; set; }
Property Value
LabelHeader
Gets or sets the heading of the period column in the table view. Defaults to the localized Chart_Period text ("Period").
[Parameter]
public string? LabelHeader { get; set; }
Property Value
RisingLabel
Gets or sets the legend label for a period that closed at or above its open. Defaults to the localized Chart_Rising text ("Rising").
[Parameter]
public string? RisingLabel { get; set; }
Property Value
Methods
BuildScene(ChartSceneBuilder)
Describes what the chart draws by adding marks, data points, axes, legend entries and a table to
builder. Add nothing to show the empty state.
protected override void BuildScene(ChartSceneBuilder builder)
Parameters
builderChartSceneBuilderThe builder that collects the scene.