Skip to content

Commit

Permalink
[ML] Show typical value in tooltips for anomalies with over but no by…
Browse files Browse the repository at this point in the history
… field or 1 numberOfCauses.
  • Loading branch information
walterra committed Oct 4, 2018
1 parent 5f5ae7a commit 4e2b015
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ export class ExplorerChartDistribution extends React.Component {
contents += (`<br/>typical: ${formatValue(marker.typical, config.functionDescription, fieldFormat)}`);
} else {
contents += (`<br/>value: ${formatValue(marker.value, config.functionDescription, fieldFormat)}`);
if (typeof marker.numberOfCauses === 'undefined' || marker.numberOfCauses === 1) {
contents += (`<br/>typical: ${formatValue(marker.typical, config.functionDescription, fieldFormat)}`);
}
if (typeof marker.byFieldName !== 'undefined' && _.has(marker, 'numberOfCauses')) {
const numberOfCauses = marker.numberOfCauses;
const byFieldName = mlEscape(marker.byFieldName);
Expand Down

0 comments on commit 4e2b015

Please sign in to comment.