angular-highcharts
angular-highcharts copied to clipboard
How to change chart type to 'candlestick'
I changed chart type 'line' to 'candlestick' but nothing showed up without any error. This is how I changed:
chart: { type: 'candlestick' }
and
series: { type: 'candlestick' }
// app.module.ts
import * as stock from 'highcharts/modules/stock.src';
import * as more from 'highcharts/highcharts-more.src';
import * as exporting from 'highcharts/modules/exporting.src';
export function highchartsModules() { return [stock, more, exporting]; }
providers: [ { provide: HIGHCHARTS_MODULES, useFactory: highchartsModules } ]
This is a workaround demo I found: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/demo/candlestick/
Were you ever able to figure this out?