miloschuman\highcharts\SeriesDataHelper::getFormatters PHP Method

getFormatters() protected method

Built-in formatters, which can be used in the [[$columns]] configuration.
protected getFormatters ( ) : callable[]
return callable[]
    protected function getFormatters()
    {
        return ['datetime' => function ($val) {
            return (double) strtotime($val) * 1000;
        }, 'int' => 'intval', 'float' => 'floatval', 'raw' => function ($val) {
            return $val;
        }, 'string' => 'strval', 'timestamp' => function ($val) {
            return (double) $val * 1000;
        }];
    }