Commit 28cc3584 authored by Phil Tsarik's avatar Phil Tsarik

Add a comment explaining why extend is being used

parent bc707fea
...@@ -225,7 +225,8 @@ More detail and specific examples can be found in the included HTML file. ...@@ -225,7 +225,8 @@ More detail and specific examples can be found in the included HTML file.
var value = data[i].data[0][1]; var value = data[i].data[0][1];
if (numCombined < 2 || value / total > options.series.pie.combine.threshold) { if (numCombined < 2 || value / total > options.series.pie.combine.threshold) {
newdata.push( newdata.push(
$.extend(data[i], { $.extend(data[i], { /* extend to allow keeping all other original data values
and using them e.g. in labelFormatter. */
data: [[1, value]], data: [[1, value]],
color: data[i].color, color: data[i].color,
label: data[i].label, label: data[i].label,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment