Chart.js Financial Charting
Chart.js module for Candlestick and OHLC charts
Chart.js 2.7.0 added our timeseries scale as new option called
distribution: series. This has greatly improved support for financial timeseries.
Chart.js 2.7.1 added fixes for timeseries.
Chart.js 2.7.2 added formatting of timestamps in tooltips.
Chart.js 2.7.3 included a fix for hovering.
Chart.js 3.0.0 removed the need for custom scales, which means logarithmic scale is now supported. It also has numerous performance improvements.
Most chart libraries don't have great handling of timescale axes and will not always choose the first of the month, year, etc. as labels. This library leverages the concept of major ticks that we introduced in Chart.js. E.g. it will make sure that the first day of each month is plotted before plotting days in between.
One of the best libraries we've found for financial charts is react-stockcharts. However, it ties the user to utilizing React.
As we near an initial release we will add additional documentation. For now, please see the docs directory.
Examples are available here: https://chartjs.github.io/chartjs-chart-financial/
Date Libraries & IE Support
IE may not be supported because we use some newer ES features. We will need to apply Babel to fix this
Chart.js requires that you supply a date library. The examples utilize chartjs-adapter-luxon, which has the best support for i18n and time zones. However, in order to use Luxon with IE you need to supply polyfills. If you require IE support you may find it easier to use another date library like Moment or date-fns. Please see the Chart.js documentation for more details on date adapters.
npm install gulp build