I use SciChart mostly for stock charts. My understanding is that the line color of a candlestick sets both the body outline and the wicks. Is there any way to set the opacity and line color of the wicks differently than the body outline?
In a stock chart with many points, the color of the wicks becomes the dominant color, and therefore when looking at a chart the curve of the wicks becomes the dominant curve. I would like to reduce the opacity of the wicks so that the curve of the candlestick bodies is the dominant curve when looking at the chart.
Thanks,
Steven
- Steven M asked 6 years ago
- You must login to post comments
Hi Steven,
Short answer is no, there isn’t a way to separately colour the wicks and the candle bodies in SciChart WPF’s Candlestick Chart, however, you could achieve this by overriding the FastCandlestickRenderableSeries type.
Since you have the source code, why not have a look at FastCandlestickRenderableSeries.InternalDraw and see how we draw this series type?
All the drawing occurs in about 100 lines of code here
private void DrawVanilla(IRenderContext2D renderContext, IRenderPassData renderPassData,
IStrokePaletteProvider strokePaletteProvider, IFillPaletteProvider fillPaletteProvider,
IPenManager penManager)
{
// ...
}
Take a look at that — I think you may be able to override in just a few places to get the desired behaviour?
Let me know if this helps,
Best regards,
Andrew
- Andrew Burnett-Thompson answered 6 years ago
- You must login to post comments
Hi Andrew,
Thank you for your suggestion. I’ll give it a try.
Warm regards,
Steven
- Steven M answered 6 years ago
- You must login to post comments
Please login first to submit.