|
|
@ -1985,12 +1985,13 @@ |
|
|
|
return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2)); |
|
|
|
return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
c3_chart_internal_fn.convertValuesToStep = function (values) { |
|
|
|
c3_chart_internal_fn.convertValuesToStep = function (values) { |
|
|
|
var converted = [].concat(values), i; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.isCategorized()) { |
|
|
|
if (!this.isCategorized()) { |
|
|
|
return values; |
|
|
|
return values; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var converted = values.slice(0), i; |
|
|
|
|
|
|
|
|
|
|
|
for (i = values.length + 1; 0 < i; i--) { |
|
|
|
for (i = values.length + 1; 0 < i; i--) { |
|
|
|
converted[i] = converted[i - 1]; |
|
|
|
converted[i] = converted[i - 1]; |
|
|
|
} |
|
|
|
} |
|
|
|