Improved appearance of SVG diagrams
The chart was widened from 400 to 500 and the font was no longer bold. Suggested-by: Mikko Rantalainen <mikko.rantalainen@gmail.com>
This commit is contained in:
parent
9404c87519
commit
39e1287e33
@ -1774,7 +1774,7 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss:
|
||||
"""Generate a SVG bar chart"""
|
||||
bar_height = 100
|
||||
label_height = 80
|
||||
length_factor = 4
|
||||
length_factor = 5
|
||||
overall_height = bar_height + label_height
|
||||
overall_width = 100 * length_factor
|
||||
css_class = 'js-mem-usage__svg'
|
||||
@ -1814,6 +1814,7 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss:
|
||||
text = document.createElementNS(self.svg_namespace, 'text')
|
||||
text.setAttribute('x', '30')
|
||||
text.setAttribute('y', '18')
|
||||
text.setAttribute('stroke-width', 0)
|
||||
text.textContent = title
|
||||
|
||||
label_group.appendChild(color_rect)
|
||||
|
Loading…
Reference in New Issue
Block a user