日期:2014-05-16 浏览次数:20365 次
var Chart = function(context){
var chart = this;
this.Pie = function(data,options){
chart.Pie.defaults = {
segmentShowStroke : true,
segmentStrokeColor : "#fff",
segmentStrokeWidth : 2,
animation : true,
animationSteps : 100,
animationEasing : "easeOutBounce",
animateRotate : true,
animateScale : false,
onAnimationComplete : null
};
var config = (options)? mergeChartConfig(chart.Pie.defaults,options) : chart.Pie.defaults;
return new Pie(data,config,context);
};
}
Chart.pie(data,{segmentStrokeColor:'red'});