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 {
31
31
}
32
32
</style>
33
33
<head>
34
- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
35
34
${ this . props . stock ? '<script src="https://code.highcharts.com/stock/highstock.js"></script>'
36
35
: '<script src="https://code.highcharts.com/highcharts.js"></script>' }
37
36
${ this . props . more ? '<script src="https://code.highcharts.com/highcharts-more.js"></script>'
@@ -40,10 +39,9 @@ class ChartWeb extends Component {
40
39
: '' }
41
40
<script src="https://code.highcharts.com/modules/exporting.js"></script>
42
41
<script>
43
- $(function ( ) {
42
+ document.addEventListener("DOMContentLoaded", function(event ) {
44
43
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 : `);
47
45
});
48
46
</script>
49
47
</head>
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ class ChartWeb extends Component {
31
31
}
32
32
</style>
33
33
<head>
34
- <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
35
34
${ this . props . stock ? '<script src="https://code.highcharts.com/stock/highstock.js"></script>'
36
35
: '<script src="https://code.highcharts.com/highcharts.js"></script>' }
37
36
${ this . props . more ? '<script src="https://code.highcharts.com/highcharts-more.js"></script>'
@@ -40,10 +39,9 @@ class ChartWeb extends Component {
40
39
: '' }
41
40
<script src="https://code.highcharts.com/modules/exporting.js"></script>
42
41
<script>
43
- $(function ( ) {
42
+ document.addEventListener("DOMContentLoaded", function(event ) {
44
43
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 : `);
47
45
});
48
46
</script>
49
47
</head>
You can’t perform that action at this time.
0 commit comments