pablojim / highcharts-ng

AngularJS directive for Highcharts
MIT License
1.73k stars 463 forks source link

Any way to access `Highcharts` object? #628

Closed nickradford closed 6 years ago

nickradford commented 6 years ago

Would like to access Highcharts.dateFormats to define a custom date format.

Highcharts.dateFormats = {
    '-m': function (timestamp) {
        return (new Date(timestamp)).getUTCMonth() + 1;
    }
};

Using v. 1.1.0

pablojim commented 6 years ago

Just import it? Not sure this is an issue with highcharts-ng