From ab6ae7ac6535c3181885ae50ab569fd24e34300e Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 2 Jan 2008 22:11:26 +0000 Subject: [PATCH] support for dashed lines in graphs git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1262 a5681a0c-68f1-0310-ab6d-d61299d08faa --- CONTRIBUTORS | 1 + NEWS | 1 + doc/rrdgraph_examples.pod | 16 +++++++ doc/rrdgraph_graph.pod | 22 ++++++--- src/rrd_graph.c | 61 ++++++++++++++++++------ src/rrd_graph.h | 7 +++ src/rrd_graph_helper.c | 118 +++++++++++++++++++++++++++++++++++++++------- 7 files changed, 188 insertions(+), 38 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a44edcb..5a73394 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -62,6 +62,7 @@ Steve Harris AIX portability Steve Rader (rrd_cgi debugging and LAST) Terminator rAT Tobias Weingartner +Thomas Gutzler dashed lines Tom Crawley (GCC&HP configuration) Travis Brown Tuc diff --git a/NEWS b/NEWS index b1fa64b..32ff16e 100644 --- a/NEWS +++ b/NEWS @@ -28,6 +28,7 @@ Graphing (Tobi Oetiker) * --full-size-mode to specify the outer border of the image and not just of the graphing canvas (Matthew Chambers) * TEXTALIGN command to alter default text alignment behaviour * C API supports in-memory graphing with rrd_graph_in_memory (Evan Miller) +* draw dashed lines in graphs (Thomas Gutzler) Forecasting (Evan Miller) ----------- diff --git a/doc/rrdgraph_examples.pod b/doc/rrdgraph_examples.pod index 7a6aba4..3530193 100644 --- a/doc/rrdgraph_examples.pod +++ b/doc/rrdgraph_examples.pod @@ -99,6 +99,22 @@ Note: the second line gets stacked on top of the first one =back +=head2 Drawing dashed lines + +Also works for HRULE and VRULE + +=over + +=item * + +default style: - - - - - + LINE1:data#FF0000:"dashed line":DASHED + +=item * + +more fancy style with offset: - - --- - --- - + LINE1:data#FF0000:"another dashed line":DASHED:dashes=15,5,5,10:dash-offset=10 + =head2 Time ranges Last four weeks: --start end-4w --end 00:00 diff --git a/doc/rrdgraph_graph.pod b/doc/rrdgraph_graph.pod index 8aca649..bba5044 100644 --- a/doc/rrdgraph_graph.pod +++ b/doc/rrdgraph_graph.pod @@ -12,11 +12,11 @@ BB<:>IB<:>I BB<:>I -BB<:>I