It includes a set of built-in formatters to handle common preprocessing tasks (like converting
datetime strings to JavaScript timestamps) and provides an extensible column configuration, which
allows you to add custom parser/formatter handlers.
Basic usage:
php
use miloschuman\highcharts\Highstock;
use miloschuman\highcharts\SeriesDataHelper;
Highstock::widget([
'options' => [
'series' => [
[
'type' => 'candlestick',
'name' => 'Stock',
'data' => new SeriesDataHelper($dataProvider, ['date:datetime', 'open', 'high', 'low', 'close']),
],
[
'type' => 'column',
'name' => 'Volume',
'data' => new SeriesDataHelper($dataProvider, ['date:datetime', 'volume:int']),
],
]
]
]);