CandlestickMark<T> Class
Draws a candlestick per row (OHLC prices): a line from the low to the high price, and a box from the open to the close price, in the positive color of the theme when the price rises and in its negative color when it falls.
public sealed class CandlestickMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>CandlestickMark<T>
Constructors
| Name | Description |
|---|---|
| CandlestickMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>) | Initializes a new instance of the CandlestickMark<T> class. |
CandlestickMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>, Func<T, object?>)
CandlestickMark.csInitializes a new instance of the CandlestickMark<T> class.
public CandlestickMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> open, Func<T, object?> high, Func<T, object?> low, Func<T, object?> close)Parameters
dataIEnumerable<T>- The rows.
xFunc<T, object?>- The channel of the time or the category of the candle.
openFunc<T, object?>- The channel of the open price.
highFunc<T, object?>- The channel of the high price.
lowFunc<T, object?>- The channel of the low price.
closeFunc<T, object?>- The channel of the close price.
Properties
| Name | Description |
|---|---|
| CandleWidth | Gets or sets the width of a candle, as a fraction of the space between two candles. The default is 0.6. |
| Close | Gets the channel of the close price. |
| High | Gets the channel of the high price. |
| Low | Gets the channel of the low price. |
| Open | Gets the channel of the open price. |
| X | Gets the channel of the time or the category of the candle. |
CandleWidth
CandlestickMark.csClose
CandlestickMark.csGets the channel of the close price.
Property value
Gets the channel of the high price.
Property value
Gets the channel of the low price.
Property value
Gets the channel of the open price.
Property value
Gets the channel of the time or the category of the candle.