Rotate colours if more elements in SVG diagram than colours
This commit is contained in:
parent
e1c0d9b714
commit
a5de90ca2a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user