fixing heatmap black squares (#11121)

This commit is contained in:
Peter Pisljar 2017-04-12 18:40:58 +02:00 committed by GitHub
parent da7ab525ce
commit 766646c5be
2 changed files with 4 additions and 5 deletions

View file

@ -157,7 +157,7 @@ export default function HeatmapChartFactory(Private) {
val = Math.min(colorsNumber - 1, Math.floor(val * colorsNumber));
}
}
return val;
return val || -1;
}
function label(d) {

View file

@ -70,10 +70,9 @@ export default function ({ getService, getPageObjects }) {
});
it('should show correct chart, take screenshot', function () {
const expectedChartValues = ['0 - 400', '0 - 400', '400 - 800', '1,200 - 1,600',
'1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400', '400 - 800',
'1,200 - 1,600', '1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400', '0 - 400', '0 - 400',
'400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', '0 - 400', '0 - 400' ];
const expectedChartValues = [null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800',
null, null, null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', null, null,
null, null, '400 - 800', '1,200 - 1,600', '1,200 - 1,600', '400 - 800', null, null ];
// Most recent failure on Jenkins usually indicates the bar chart is still being drawn?
// return arguments[0].getAttribute(arguments[1]);","args":[{"ELEMENT":"592"},"fill"]}] arguments[0].getAttribute is not a function