fixed legend bug, simplified check for perc
fixed legend bug, simplified check for perc


Former-commit-id: f9d0bfcd5ec3148d2d33585d2096a2e97da54fb6 [formerly d74628fc02e2b4845de0075e71478bc19f70a0e8] [formerly d74628fc02e2b4845de0075e71478bc19f70a0e8 [formerly d74628fc02e2b4845de0075e71478bc19f70a0e8 [formerly 5119ce5cbce45a354c57e150ef1e0b5454ead52e]]]
Former-commit-id: ac3ece82819492e3f369200bc6ecde148896ef4f
Former-commit-id: a7e4d4772eef456240fce27c4cbfd086fc564e57 [formerly 973ed4ae04c4c02008a0cb64532c0a77bd132dfe]
Former-commit-id: 7ccb9051184ad13b0a4e3ebd26d63544639bbe8f
interrogator/corpkit,interrogator/corpkit