kyper-data / python-highcharts

A simple translation layer between Python and Javascript for Highcharts projects (highcharts, highmaps, and highstocks).
MIT License
393 stars 190 forks source link

Commas don't appear #4

Closed ayamahmod closed 8 years ago

ayamahmod commented 8 years ago

Why commas don't appear as thousands separator in the output file? screenshot from 2016-03-23 15 38 26

flyjohn02 commented 8 years ago

Hi Aya,

I just added the capability to include two options: global and lang (in Highchart.setOptions). We did not add those intentionally because we were not sure how useful they could be and if they are duplicated setting for other purposes. However, it seems like there are something set only by these two.

You can use these two as other options by set_option/set_dict_options method. To add commas, you need to set thousandsSep in lang: options = { 'lang':{ 'thousandsSep': ',' } } You can also check this discussion.

Also, I hope you can understand that python-highchart is an open source project and relies on your participation and contribution. We (Kyle and I) have no association with highcharts. The only purpose here is to make contribution to the society and help each other. Hopefully, we can attract more people to use highchart and (even more) to the data analysis and visualization community. We are happy to help but cannot promise to solve any specific question in the plot someone likes to make. To those questions, I would recommend to search on stackoverflow or others forums first.

Thanks,

Hank