提交 96b7e08a 编写于 作者: K kener

why echarts 单文件引入更新

上级 c33af8b3
var developMode = true; var developMode = false;
if (developMode) { if (developMode) {
// for develop // for develop
...@@ -23,21 +23,9 @@ if (developMode) { ...@@ -23,21 +23,9 @@ if (developMode) {
} }
else { else {
// for echarts online home page // for echarts online home page
var fileLocation = '../../doc/example/www/js/echarts-map';
require.config({ require.config({
paths:{ paths:{
echarts: fileLocation, echarts: '../../doc/example/www/js',
'echarts/chart/line': fileLocation,
'echarts/chart/bar': fileLocation,
'echarts/chart/scatter': fileLocation,
'echarts/chart/k': fileLocation,
'echarts/chart/pie': fileLocation,
'echarts/chart/radar': fileLocation,
'echarts/chart/map': fileLocation,
'echarts/chart/chord': fileLocation,
'echarts/chart/force': fileLocation,
'echarts/chart/gauge': fileLocation,
'echarts/chart/funnel': fileLocation,
webkitDep : '../../doc/example/webkit-dep' webkitDep : '../../doc/example/webkit-dep'
} }
}); });
......
var developMode = true; var developMode = false;
if (developMode) { if (developMode) {
// for develop // for develop
...@@ -23,21 +23,9 @@ if (developMode) { ...@@ -23,21 +23,9 @@ if (developMode) {
} }
else { else {
// for echarts online home page // for echarts online home page
var fileLocation = '../../doc/example/www/js/echarts-map';
require.config({ require.config({
paths:{ paths:{
echarts: fileLocation, echarts: '../../doc/example/www/js',
'echarts/chart/line': fileLocation,
'echarts/chart/bar': fileLocation,
'echarts/chart/scatter': fileLocation,
'echarts/chart/k': fileLocation,
'echarts/chart/pie': fileLocation,
'echarts/chart/radar': fileLocation,
'echarts/chart/map': fileLocation,
'echarts/chart/chord': fileLocation,
'echarts/chart/force': fileLocation,
'echarts/chart/gauge': fileLocation,
'echarts/chart/funnel': fileLocation,
webkitDep : '../../doc/example/webkit-dep' webkitDep : '../../doc/example/webkit-dep'
} }
}); });
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script> <script src="lib/js/html5shiv.js"></script>
<![endif]--> <![endif]-->
<script src="../asset/js/esl/esl.js"></script>
<style type="text/css"> <style type="text/css">
* { * {
font-family:'微软雅黑' !important; font-family:'微软雅黑' !important;
...@@ -642,7 +641,7 @@ ...@@ -642,7 +641,7 @@
}); });
</script> </script>
<script src="../example/www/js/echarts.js"></script>
<script src="js/whyEcharts-en.js"></script> <script src="js/whyEcharts-en.js"></script>
<script src="js/timelineOption.js"></script> <script src="js/timelineOption.js"></script>
</body> </body>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script> <script src="lib/js/html5shiv.js"></script>
<![endif]--> <![endif]-->
<script src="../asset/js/esl/esl.js"></script>
<style type="text/css"> <style type="text/css">
* { * {
font-family:'微软雅黑' !important; font-family:'微软雅黑' !important;
...@@ -646,7 +645,7 @@ ...@@ -646,7 +645,7 @@
}); });
</script> </script>
<script src="../example/www/js/echarts.js"></script>
<script src="js/whyEcharts.js"></script> <script src="js/whyEcharts.js"></script>
<script src="js/timelineOption.js"></script> <script src="js/timelineOption.js"></script>
</body> </body>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册