simplecharts

SVG charts without dependencies
git clone https://git.ce9e.org/simplecharts.git

commit
3d60e2c52a1d753bf354a0afc782db0b29bf47bb
parent
6b09cf7618522123f19d0594dbce4c45d658f1eb
Author
Tobias Bengfort <bengfort@mpib-berlin.mpg.de>
Date
2025-04-24 16:16
fix: use y_labels in height calculation

Diffstat

M simplecharts.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/simplecharts.py b/simplecharts.py

@@ -156,7 +156,7 @@ class BaseRenderer:
  156   156         x = -(self.padding + self.x_labels)
  157   157         y = -(self.padding + self.y_legend)
  158   158         width = self.width + p + self.x_labels
  159    -1         height = self.height + p + self.y_legend + self.y_legend
   -1   159         height = self.height + p + self.y_labels + self.y_legend
  160   160         return f'{x:g} {y:g} {width:g} {height:g}'
  161   161 
  162   162     def render(self, data):