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

why echarts 单文件引入更新

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