summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3e3867)
raw | patch | inline | side by side (parent: e3e3867)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 25 Jan 2010 22:09:23 +0000 (22:09 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 25 Jan 2010 22:09:23 +0000 (22:09 +0000) |
src/rrd_graph.c | patch | blob | history | |
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 258eb528dc3ea0e1af1d045a54ef17f7d557998a..24b58d08bf48b9b8264789aa340aeb382a1c8bc9 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (prt_fctn == 'c')
leg_x = (double)(legendwidth - fill) / 2.0;
if (prt_fctn == 'r')
- leg_x = legendwidth - fill - border;
+ leg_x = legendwidth - fill + border;
for (ii = mark; ii <= i; ii++) {
if (im->gdes[ii].legend[0] == '\0')
continue; /* skip empty legends */
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 9e60847dadfbe1c529483b479ff5d6c70870fe0c..5a56a96d41281a6aa95d09bb71e62615194cb932 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
"\t\t[PRINT:vdefname:format]\n"
"\t\t[GPRINT:vdefname:format]\n" "\t\t[COMMENT:text]\n"
"\t\t[SHIFT:vname:offset]\n"
+ "\t\t[TEXTALIGN:{left|right|justified|center}]\n"
"\t\t[TICK:vname#rrggbb[aa][:[fraction][:legend]]]\n"
"\t\t[HRULE:value#rrggbb[aa][:legend]]\n"
"\t\t[VRULE:value#rrggbb[aa][:legend]]\n"