summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f5f5aa)
raw | patch | inline | side by side (parent: 6f5f5aa)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 2 May 2004 21:10:59 +0000 (21:10 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 2 May 2004 21:10:59 +0000 (21:10 +0000) |
allows one to change it from configure command line:
./configure RRDGRAPH_YLEGEND_ANGLE=270.0
-- Stanislav Sinyagin <ssinyagin@yahoo.com>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@243 a5681a0c-68f1-0310-ab6d-d61299d08faa
./configure RRDGRAPH_YLEGEND_ANGLE=270.0
-- Stanislav Sinyagin <ssinyagin@yahoo.com>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@243 a5681a0c-68f1-0310-ab6d-d61299d08faa
configure.ac | patch | blob | history | |
src/rrd_graph.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 254ad3d11643b383154f075a07bde42c9a7f5c9a..c9dd1704c945d1777033147dc4f2a5ecced79194 100644 (file)
--- a/configure.ac
+++ b/configure.ac
EX_CHECK_ALL(png, png_access_version_number, png.h, libpng, 1.2.5, http://prdownloads.sourceforge.net/libpng/)
EX_CHECK_ALL(freetype, FT_Init_FreeType, ft2build.h, freetype, 2.1.5, http://prdownloads.sourceforge.net/freetype/)
+dnl How the vertical axis label is printed
+AC_ARG_VAR(RRDGRAPH_YLEGEND_ANGLE,
+ [Vertical label angle: 90.0 (default) or 270.0])
+AC_DEFINE_UNQUOTED(RRDGRAPH_YLEGEND_ANGLE,${RRDGRAPH_YLEGEND_ANGLE:-90.0},
+ [Vertical label angle: 90.0 (default) or 270.0])
+
+
dnl Check for Perl.
AC_PATH_PROG(PERL, perl, no)
if test "x$PERL" = "xno"; then
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 36c80548dee3308e4c077d895594a06aad45be77..34dbd218ab50ee63884fe823902e8ed9ff3fee9d 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
7, (im->yorigin - im->ysize/2),
im->graph_col[GRC_FONT],
im->text_prop[TEXT_PROP_AXIS].font,
- im->text_prop[TEXT_PROP_AXIS].size, im->tabwidth, 270.0,
+ im->text_prop[TEXT_PROP_AXIS].size, im->tabwidth,
+ RRDGRAPH_YLEGEND_ANGLE,
GFX_H_LEFT, GFX_V_CENTER,
im->ylegend);
} else {