@@ -764,7 +764,7 @@ def request_chart(self,
764764 'using a series type introduced in v.11. Sorry, but '
765765 'that functionality is still forthcoming.' )
766766
767- options_as_json = self .options .to_json ()
767+ options_as_json = self .options .to_json (for_export = True )
768768 if isinstance (options_as_json , bytes ):
769769 options_as_str = str (options_as_json , encoding = 'utf-8' )
770770 else :
@@ -773,31 +773,31 @@ def request_chart(self,
773773 as_json = as_json .replace ('"HIGHCHARTS FOR PYTHON: REPLACE WITH OPTIONS"' ,
774774 options_as_str )
775775 if self .callback :
776- callback_as_json = self .callback .to_json ()
776+ callback_as_json = self .callback .to_json (for_export = True )
777777 if isinstance (callback_as_json , bytes ):
778778 callback_as_str = str (callback_as_json , encoding = 'utf-8' )
779779 else :
780780 callback_as_str = callback_as_json
781781 as_json = as_json .replace ('"HIGHCHARTS FOR PYTHON: REPLACE WITH CALLBACK"' ,
782782 callback_as_str )
783783 if self .global_options :
784- global_as_json = self .global_options .to_json ()
784+ global_as_json = self .global_options .to_json (for_export = True )
785785 if isinstance (global_as_json , bytes ):
786786 global_as_str = str (global_as_json , encoding = 'utf-8' )
787787 else :
788788 global_as_str = global_as_json
789789 as_json = as_json .replace ('"HIGHCHARTS FOR PYTHON: REPLACE WITH GLOBAL"' ,
790790 global_as_str )
791791 if self .data_options :
792- data_as_json = self .data_options .to_json ()
792+ data_as_json = self .data_options .to_json (for_export = True )
793793 if isinstance (data_as_json , bytes ):
794794 data_as_str = str (data_as_json , encoding = 'utf-8' )
795795 else :
796796 data_as_str = data_as_json
797797 as_json = as_json .replace ('"HIGHCHARTS FOR PYTHON: REPLACE WITH DATA"' ,
798798 data_as_str )
799799 if self .custom_code :
800- code_as_json = self .custom_code .to_json ()
800+ code_as_json = self .custom_code .to_json (for_export = True )
801801 if isinstance (code_as_json , bytes ):
802802 code_as_str = str (code_as_json , encoding = 'utf-8' )
803803 else :
0 commit comments