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);
};
}我使用了Bootstrap的Chart.js,上面是饼图的默认设置,现在我在页面中引用,要怎么改默认参数呢?
例如我要segmentStrokeColor 的颜色值为red,该怎么设置?
JavaScript插件函数Bootstrap