Geyutong opened a new issue #10415: Uncaught ReferenceError: app is not defined URL: https://github.com/apache/incubator-echarts/issues/10415 ### Version 4.2.1 ### Steps to reproduce I downloaded the source code from here: https://ecomfe.github.io/echarts-examples/public/editor.html?c=scatter-nutrients My modification to the source code: - Sourced jquery - Replaced .get with .getJSON. - Sourced the json file from https://raw.githubusercontent.com/apache/incubator-echarts/master/test/data/nutrients.json The part of the source code with the app variable is below: `app.config = { xAxis: 'protein', yAxis: 'calcium', onChange: function () { if (data) { myChart.setOption({ xAxis: { name: app.config.xAxis }, yAxis: { name: app.config.yAxis }, series: { data: data.map(function (item, idx) { return [ item[fieldIndices[app.config.xAxis]], item[fieldIndices[app.config.yAxis]], item[1], idx ]; }) } }); } } }; app.configParameters = { xAxis: { options: fieldNames }, yAxis: { options: fieldNames } };` ### What is expected? Expected to see the same results as shown on the page with the source code, with the dropdown menu on the top right: https://ecomfe.github.io/echarts-examples/public/editor.html?c=scatter-nutrients ### What is actually happening? The error I get: - app is not defined. With this error, I am not able to display the dropdown menus to allow user to select different X and Y axis. <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> <!-- This issue is in English. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
