highcharts-for-python / highcharts-core

Python wrapper for the Highcharts Core JavaScript library
https://www.highcharts.com/integrations/python
Other
58 stars 13 forks source link

Optimized format for saving series `data` #187

Open nishikantparmariam opened 4 months ago

nishikantparmariam commented 4 months ago

Coming from reproducer in https://github.com/highcharts-for-python/highcharts-stock/issues/65#issue-2410925267, it seems that even if data is passed as list of lists, it is always converted into list of dicts, that may not be the most optimized way to pass data to Highcharts JS layer because things like turbo/boost may not work.

Refer - https://github.com/highcharts/highcharts/issues/20057#issuecomment-1817478017.

hcpchris commented 4 months ago

Hmm. Given your comment in https://github.com/highcharts-for-python/highcharts-stock/issues/65#issuecomment-2231065256 , this suggests that there is a bug somewhere in the implementation. Because in a context where NumPy is present/available data points should be serialized to a list of lists unless the data point has a property configured that precludes that. This will require a bit more investigation.