summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08b4b4d)
raw | patch | inline | side by side (parent: 08b4b4d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 16 May 2005 06:33:30 +0000 (06:33 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 16 May 2005 06:33:30 +0000 (06:33 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@561 a5681a0c-68f1-0310-ab6d-d61299d08faa
doc/rrdgraph.pod | patch | blob | history | |
src/rrd_graph.c | patch | blob | history | |
src/rrd_graph.h | patch | blob | history |
diff --git a/doc/rrdgraph.pod b/doc/rrdgraph.pod
index a0a54228557df7398d3546a7c81b286c11fbb6c1..6017efd08032ab6d11127f1ccbc0259b8df23a1a 100644 (file)
--- a/doc/rrdgraph.pod
+++ b/doc/rrdgraph.pod
I<COLORTAG> is one of C<BACK> background, C<CANVAS> for the background of
the actual graph, C<SHADEA> for the left and top border, C<SHADEB> for the
right and bottom border, C<GRID>, C<MGRID> for the major grid, C<FONT> for
-the color of the font, C<AXIS> for the axis of the graph and finally C<ARROW>
-for the arrow head pointing to the future. Each color is composed out of
-three hexadecimal numbers specifying its rgb color component (00 is off, FF is
-maximum) of red, green and blue. Optionally you may add another hexadecimal
-number specifying the transparency (FF is solid). You may set this option
-several times to alter multiple defaults.
+the color of the font, C<AXIS> for the axis of the graph, C<FRAME> for the
+line around the color spots and finally C<ARROW> for the arrow head pointing
+up and forward. Each color is composed out of three hexadecimal numbers
+specifying its rgb color component (00 is off, FF is maximum) of red, green
+and blue. Optionally you may add another hexadecimal number specifying the
+transparency (FF is solid). You may set this option several times to alter
+multiple defaults.
A green arrow is made by: C<--color ARROW:00FF00>
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index a3994910ce98e42538d00444edf8e3d731b6e701..a258685a91bfb26ec1ffcd95f66dcc8f02592ea1 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
0xE0505080, /* major grid */
0x000000FF, /* font */
0x802020FF, /* arrow */
- 0x202020FF /* axis */
-};
+ 0x202020FF, /* axis */
+ 0x000000FF /* frame */
+};
/* #define DEBUG */
conv_if(FONT,GRC_FONT)
conv_if(ARROW,GRC_ARROW)
conv_if(AXIS,GRC_AXIS)
+ conv_if(FRAME,GRC_FRAME)
return -1;
}
node = gfx_new_line(im->canvas,
X0-1,Y0-boxV,
X0-1,Y0,
- 1,im->graph_col[GRC_FONT]);
+ 1,im->graph_col[GRC_FRAME]);
gfx_add_point(node,X0+boxH,Y0);
gfx_add_point(node,X0+boxH,Y0-boxV);
gfx_close_path(node);
diff --git a/src/rrd_graph.h b/src/rrd_graph.h
index ca3e7c3978b525a046462402c77c87404892ef41..9cbfd027f3bc828dd7b73e7162c13ecc236033dc 100644 (file)
--- a/src/rrd_graph.h
+++ b/src/rrd_graph.h
TMT_WEEK,TMT_MONTH,TMT_YEAR};
enum grc_en {GRC_CANVAS=0,GRC_BACK,GRC_SHADEA,GRC_SHADEB,
- GRC_GRID,GRC_MGRID,GRC_FONT,GRC_ARROW,GRC_AXIS,__GRC_END__};
+ GRC_GRID,GRC_MGRID,GRC_FONT,GRC_ARROW,GRC_AXIS,GRC_FRAME,__GRC_END__};
#define MGRIDWIDTH 0.6
#define GRIDWIDTH 0.4