Rotate colours if more elements in SVG diagram than colours

This commit is contained in:
Carsten Grohmann 2018-04-06 22:20:26 +02:00
parent e1c0d9b714
commit a5de90ca2a

View File

@ -532,7 +532,7 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
if not rect_len:
continue
colour = self.svg_colours[nr_processed_elements]
colour = self.svg_colours[nr_processed_elements % len(self.svg_colours)]
rect = self._create_svg_rect(current_pos, 0, rect_len, bar_height, colour)
bar_group.appendChild(rect)