Echarts initializes the Times with this error.
Require.config is not a function
Programme one:
The initialization of one side is not dependent on require.
1. Remove
vartestdrowecharts=function(data) {
require.config ({paths: {echarts:
' Build/dist '
} }); Require ([
' Echarts '
, ' echarts/chart/line ', // load bar module with histogram, load on demand
],
function
(EC) {
//Initialize the Echarts chart based on the prepared Dom varGRange = Ec.init (document.getElementById (' main ')));
...
};
//loading data for Echarts objectsgrange.setoption (option); );}
2. Become
var testdrowecharts=function(data) { // based on the prepared DOM, initialize the Echarts chart varecharts. Init (document.getElementById (' main ')); ... // grange.setoption (option); );}
Handsontable and Echarts both define the Require method, the initialization of the conflict, how to do?