mpx200 / ng-dygraphs

Angular 2+ library for support of dygraphs(http://dygraphs.com) charts
MIT License
3 stars 9 forks source link

Crash if "labels" is undefined #1

Closed JimiC closed 7 years ago

JimiC commented 7 years ago

Module crashed if no [labels] is provided. Problem occurs @ https://github.com/mpx200/ng-dygraphs/blob/master/src/ng-dygraphs.component.ts#L41

JimiC commented 7 years ago

Additionally, consider assigning initial values for options if the user does not define any.