File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ class ChartWeb extends Component {
3131 }
3232 </style>
3333 <head>
34- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
3534 ${ this . props . stock ? '<script src="https://code.highcharts.com/stock/highstock.js"></script>'
3635 : '<script src="https://code.highcharts.com/highcharts.js"></script>' }
3736 ${ this . props . more ? '<script src="https://code.highcharts.com/highcharts-more.js"></script>'
@@ -40,10 +39,9 @@ class ChartWeb extends Component {
4039 : '' }
4140 <script src="https://code.highcharts.com/modules/exporting.js"></script>
4241 <script>
43- $(function ( ) {
42+ document.addEventListener("DOMContentLoaded", function(event ) {
4443 Highcharts.setOptions(${ JSON . stringify ( this . props . options ) } );
45- Highcharts.${ this . props . stock ? 'stockChart' : 'chart' } ('container', ` ,
46- end :` );
44+ Highcharts.${ this . props . stock ? 'stockChart' : 'chart' } ('container', ` , end : `);
4745 });
4846 </script>
4947 </head>
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ class ChartWeb extends Component {
3131 }
3232 </style>
3333 <head>
34- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
3534 ${ this . props . stock ? '<script src="https://code.highcharts.com/stock/highstock.js"></script>'
3635 : '<script src="https://code.highcharts.com/highcharts.js"></script>' }
3736 ${ this . props . more ? '<script src="https://code.highcharts.com/highcharts-more.js"></script>'
@@ -40,10 +39,9 @@ class ChartWeb extends Component {
4039 : '' }
4140 <script src="https://code.highcharts.com/modules/exporting.js"></script>
4241 <script>
43- $(function ( ) {
42+ document.addEventListener("DOMContentLoaded", function(event ) {
4443 Highcharts.setOptions(${ JSON . stringify ( this . props . options ) } );
45- Highcharts.${ this . props . stock ? 'stockChart' : 'chart' } ('container', ` ,
46- end :` );
44+ Highcharts.${ this . props . stock ? 'stockChart' : 'chart' } ('container', ` , end : `);
4745 });
4846 </script>
4947 </head>
You can’t perform that action at this time.
0 commit comments