gevgeny / angular2-highcharts

:bar_chart: :chart_with_upwards_trend: Highcharts for your Angular project
MIT License
380 stars 113 forks source link

Not able to add shortWeekdays label #152

Open sardar-nale opened 7 years ago

sardar-nale commented 7 years ago

Hi, I am using angular2-highcharts library version 0.4.3. I tried to set the label's for the months,weekdays ,shortWeekdays etc. using following code :

Highcharts.setOptions({
            lang: {
                 months: this.translationsArr['MONTH'],
                 weekdays: this.translationsArr['DAY'],
                 shortMonths: this.translationsArr['SHORTMONTH'],
                 shortWeekdays:this.translationsArr['SHORTDAY'],
                 decimalPoint:this.translationsArr['DECIMAL_SEP'],
                 thousandsSep:this.translationsArr['GROUP_SEP']
            }
        });

It gives me error for the line shortWeekdays:this.translationsArr['SHORTDAY'], saying shortWeekdays does not exist in langObject.

Kindly suggest.

Thanks, Sardar Nale

gevgeny commented 7 years ago

how it is related with angular2-highcharts ? i think it is about highcharts

sardar-nale commented 7 years ago

Hey, If I add shortWeekdays in that highcharts library it works. is it possible to you to point to highchrats latest version. It might be resolved there. As if I install angular2-highcharts i will have to do this configuration every time

sardar-nale commented 7 years ago

This is the main highcharts library raised issue URL: https://github.com/highcharts/highcharts/issues/4871

sardar-nale commented 7 years ago

Hey, Have you checked this issue ?

sardar-nale commented 7 years ago

Hey is there any way to provide new release with which it will show shortWeekdays options ?

gevgeny commented 7 years ago

Sorry. Going to go deeper to the issue this weekend. Btw pull request can make the thing faster ;)