Setting Candle Stick Colors #319
-
I looked through the samples/examples and didn't find out how you set the candle up and down colors. `
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It took me a while to find a sample that had the hard coded values... ` new CandlesticksSeries
|
Beta Was this translation helpful? Give feedback.
It took me a while to find a sample that had the hard coded values...
` new CandlesticksSeries
{
UpFill = new SolidColorPaint{ Color = SKColors.Black },
DownFill = new SolidColorPaint{ Color = SKColors.Red },
UpStroke = new SolidColorPaint{ Color = SKColors.Black },
DownStroke = new SolidColorPaint{ Color = SKColors.Red },
Values = new ObservableCollection
{
// date, high, open, close, low
new FinancialPoint(new DateTime(2021, 1, 1), 523, 500, 450, 400),
new FinancialPoint(new DateTime(2021, 1, 2), 500, 450, 425, 400),
new FinancialPoint(new DateTime(2021, 1, 3), 490, 425, 400, 380),
new FinancialPoint(new DateTime(2021, 1, 4), 420, 400, 420, 380),
new FinancialPoint(new DateTime(2021, 1,…