You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/14 07:21:26 UTC

[GitHub] [incubator-echarts] ankitagrahari opened a new issue #11641: Latest ECharts 4.4/3/2 is not working with script tag, while Echarts 2.2.7 is working

ankitagrahari opened a new issue #11641: Latest ECharts 4.4/3/2 is not working with script tag, while Echarts 2.2.7 is working
URL: https://github.com/apache/incubator-echarts/issues/11641
 
 
   ### Version
   4.4.0
   
   ### Steps to reproduce
   I am using the latest echarts.min.js file and trying to use it by script tag in my jsp page. The application is able to get the js file, but on call to echarts, it is throwing error "echarts is undefined". This is happening with echarts 4.4 or 4.3 or 4.2. But the same is working with 2.2.7 version.
   
   Usage for 4.4:
   <script type="text/javascript" src="/js/echarts.min.js"></script>
   <div id="container" style="width: 600px; height: 250px;"></div>
   <script type="text/javascript">
             var myChart = echarts.init(document.getElementById("main"));
   </script> 
   
   Usage for 2.2.7
   <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/2.2.7/echarts-all.js"></script>
   <div id="container" style="width: 600px; height: 250px;"></div>
   <script type="text/javascript">
             var myChart = echarts.init(document.getElementById("main"));
   </script>
   
   ### What is expected?
   latest echarts 4.4 should work with script tag in jsp page
   
   ### What is actually happening?
   echarts.min.js is throwing error on calling echarts.init()
   echarts is undefined
   
   ---
   I have raised a previous ticket #11573, but since I got the echarts2.2.7 working I closed it. But with the echarts 2.2.7 version, I got it from cdn and there is no license information, and i cannot find a link for echarts 2.2.7 on echarts.apache.org site. Kindly let me know following:
   1. how the echarts 2.2.7 different from echarts 4.4 which is not working with script tag ?
   2. If I am using echarts 2.2.7, are there any licence information and a link from echarts website to use ?
   
   Thanks
   
   <!-- 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org