为什么我的echart图表引入myeclipse后没有动态效果只能加载出静态页面

图片说明

http://blog.csdn.net/football98/article/details/52778209 这篇文章也不错

你起码把网页源代码贴出来看一下阿

你所谓的动态效果是什么???数据设置给图表有问题吗??

有个动画开关属性来着,animation吧好像是

animationDuration: 1500,

网页上面有各种Echarts图表例子,里面的数据好多都是静态的,如果要展示动态的数据,需要从数据库获取数据,填充进去就可以了(data)。这个例子可以看看:http://bbs.csdn.net/topics/390711658
indexdata = {category:['A','B','C'],total:[4,1,1]};

option = {
title : {
text: 'xxxx',
subtext: '',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a}
{b} : {c} ({d}%)"
},
legend: {
orient : 'vertical',
x : 'left',
data:indexdata.category
},
toolbox: {
show : false,
feature : {
mark : true,
dataView : {readOnly: false},
restore : true,
saveAsImage : true
}
},
calculable : true,
series : [
{
name:'数量小计',
type:'pie',
radius : [0, 110],
selectedOffset : [10],
//data:[
//{value:indexdata.total[0], name:indexdata.category[0]},
//{value:indexdata.total[1], name:indexdata.category[1]}
//]

                            data: (function(){

                            var res = [];
                            var len = 0;
                            for(var i=0,size=index_data.total.length;i<size;i++) {
                            res.push({
                            name: indexdata.category[i],
                            value: indexdata.total[i]
                            });
                            }
                            return res;
                            })()



                        }
                    ]
                };

你可以看看你的代码中有没有,
animation: false,Echarts中,animation的默认值为true,这个是控制是否开启动画效果的,默认开启

谢谢各位,其实跟echart无关,只是我写的弹框将图表遮住了。。。