Skip to content

Commit

Permalink
[Pie Chart] Added "Others" value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro del Castillo committed Feb 15, 2016
1 parent 7e1029b commit 435b27d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ export default function buildHierarchicalDataProvider(Private, Notifier) {
var split = buildSplit(firstAgg, metric, aggData);
split.hits = resp.hits.total;
split.raw = raw;
// Add others
split.raw.rows.push(['Others', aggData.sum_other_doc_count]);
split.slices.children.push({
'aggConfig': undefined,
'aggConfigResult': undefined,
'name': 'Others',
'size': aggData.sum_other_doc_count
});
split.tooltipFormatter = tooltipFormatter(raw.columns);
return split;
}
Expand Down

0 comments on commit 435b27d

Please sign in to comment.