|
|
@ -1251,6 +1251,8 @@ |
|
|
|
donut_title: "", |
|
|
|
donut_title: "", |
|
|
|
donut_expand: {}, |
|
|
|
donut_expand: {}, |
|
|
|
donut_expand_duration: 50, |
|
|
|
donut_expand_duration: 50, |
|
|
|
|
|
|
|
// spline
|
|
|
|
|
|
|
|
spline_interpolation_type: 'cardinal', |
|
|
|
// region - region to change style
|
|
|
|
// region - region to change style
|
|
|
|
regions: [], |
|
|
|
regions: [], |
|
|
|
// tooltip - show when mouseover on each data
|
|
|
|
// tooltip - show when mouseover on each data
|
|
|
@ -2819,8 +2821,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c3_chart_internal_fn.getInterpolate = function (d) { |
|
|
|
c3_chart_internal_fn.getInterpolate = function (d) { |
|
|
|
var $$ = this; |
|
|
|
var $$ = this, |
|
|
|
return $$.isSplineType(d) ? "cardinal" : $$.isStepType(d) ? $$.config.line_step_type : "linear"; |
|
|
|
interpolation = $$.isInterpolationType($$.config.spline_interpolation_type) ? $$.config.spline_interpolation_type : 'cardinal'; |
|
|
|
|
|
|
|
return $$.isSplineType(d) ? interpolation : $$.isStepType(d) ? $$.config.line_step_type : "linear"; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
c3_chart_internal_fn.initLine = function () { |
|
|
|
c3_chart_internal_fn.initLine = function () { |
|
|
@ -3548,6 +3551,9 @@ |
|
|
|
c3_chart_internal_fn.barOrLineData = function (d) { |
|
|
|
c3_chart_internal_fn.barOrLineData = function (d) { |
|
|
|
return this.isBarType(d) || this.isLineType(d) ? d.values : []; |
|
|
|
return this.isBarType(d) || this.isLineType(d) ? d.values : []; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
c3_chart_internal_fn.isInterpolationType = function (type) { |
|
|
|
|
|
|
|
return ['linear', 'linear-closed', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'monotone'].indexOf(type) >= 0; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
c3_chart_internal_fn.initGrid = function () { |
|
|
|
c3_chart_internal_fn.initGrid = function () { |
|
|
|
var $$ = this, config = $$.config, d3 = $$.d3; |
|
|
|
var $$ = this, config = $$.config, d3 = $$.d3; |
|
|
|