AW-1072 VanderSat: Balkjes wat dichter bij getallen: % staat soms op volgende regel
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Peter Bastiani 2020-03-20 10:47:57 +01:00
parent 0814a6a877
commit 9b98f3d91c

View File

@ -59,7 +59,7 @@ export class LegendComponent implements OnInit,AfterViewInit {
public getPart(renderer: IRenderer, index: number): string {
let max = renderer.band.histogram.entries.reduce((max, entry) => entry.freqency > max ? entry.freqency : max, 0);
let scale = 75 / max;
let scale = 65 / max;
let part = (renderer.band.histogram.entries[index].freqency * scale) + "%";
return part;