WPF candlestick chart Example
Create a highly responsive WPF candlestick chart for financial and trading applications. This example showcases how to render Open-High-Low-Close (OHLC) data efficiently, visualizing market trends and price movements. This example also shows you how to implement zooming, panning, and custom up/down coloring.
By using the Visual Xccelerator™ engine, developers can display 100s of millions or billions of data points for high-frequency trading analysis. Whether you’re building an enterprise platform or testing concepts, this WPF Candlestick Chart code sample provides a good starting point.
Download the code to test the rendering speed firsthand, and read the documentation to learn how to add financial indicators and interactive drawing tools to your charts.
Example Usage:
- ZoomPan, left-mouse drag to pan the chart
- Mousewheel, roll the mousewheel to zoom
- ZoomExtents, double click to zoom to extents
SciChart Tip!
To get the effect of hiding the line for the first N points of a moving average, you can insert double.NaN into the XyDataSeries. double.NaN can be used to render gaps or continuous lines.
Documentation Links
- FastCandlestickRenderableSeries Type
- OhlcDataSeries Type
- CategoryDateTimeAxis vs. NumericAxis
- RenderableSeries API
Ready to start building high performance data visualization dashboards and web applications? Read our Getting Started guide.
About SciChart.WPF
We’re one of the fastest WPF chart libraries, and that means you can create fully customizable and high performance candlestick charts for all your web applications. SciChart WPF ships with hundreds of WPF Chart Examples which you can browse, play with, view the source-code and even export each WPF Chart Example to a stand-alone Visual Studio solution. All of this is possible with the new and improved SciChart WPF Examples Suite, which ships as part of the SciChart WPF SDK.
The C#/WPF source code for the WPF Candlestick Chart example is included below (Scroll down!).
Did you know you can also view the source code from one of the following sources as well?
- Clone the SciChart.WPF.Examples from GitHub.
- Or, view source in the SciChart WPF Examples suite.
- Also the SciChart WPF Trial contains the full source for the examples (link below).



