We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6cbd4 commit 4476e1aCopy full SHA for 4476e1a
ui/app/clinical/common/utils/c3Chart.js
@@ -115,7 +115,9 @@ Bahmni.Graph.c3Chart = function () {
115
};
116
117
this.render = function (bindTo, graphWidth, config, data) {
118
- var distinctUnits = _.uniq(_.map(data, 'units'));
+ var distinctUnits = _.uniq(_.filter(_.map(data, 'units'), function(unit) {
119
+ return unit !== undefined;
120
+ }));
121
if (distinctUnits.length > 2) {
122
throw new Error("Cannot display line graphs with concepts that have more than 2 units");
123
}
0 commit comments