v0.3.3.
This commit is contained in:
1 parent
677a0e4d2c
commit
c85c9fc144
4 files changed
+31
-7
No files matched your search
@@ -134,6 +134,14 @@ func (m *Manager) Graph(ctx context.Context, key, theme string) (string, error)
|
||||
"graph", out,
|
||||
"--imgformat", "PNG",
|
||||
"--start", rg.Start, "--end", "now",
|
||||
// By default rrdtool's --width/--height size only the plot canvas;
|
||||
// the title, legend rows and axis-label margins then pad the final
|
||||
// PNG to something larger and variable (depends on title/legend
|
||||
// text length). --full-size-mode makes --width/--height the exact
|
||||
// *total* image size instead, so the PNG is always precisely
|
||||
// 1200x320 -- matching the CSS aspect-ratio on the <img> exactly,
|
||||
// with no letterboxing from a size mismatch.
|
||||
"--full-size-mode",
|
||||
"--width", "1200", "--height", "320",
|
||||
"--lower-limit", "0", "--alt-autoscale-max", "--rigid",
|
||||
"--slope-mode",
|
||||
|
||||
Reference in new issue
Block a user