From 90421d4ac96a9df1d219dc4559429429532f6825 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@1262 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/CONTRIBUTORS | 1 + program/NEWS | 1 + program/doc/rrdgraph_examples.pod | 16 ++++ program/doc/rrdgraph_graph.pod | 22 ++++-- program/src/rrd_graph.c | 61 +++++++++++---- program/src/rrd_graph.h | 7 ++ program/src/rrd_graph_helper.c | 118 +++++++++++++++++++++++++----- 7 files changed, 188 insertions(+), 38 deletions(-) diff --git a/program/CONTRIBUTORS b/program/CONTRIBUTORS index a44edcb5..5a73394d 100644 --- a/program/CONTRIBUTORS +++ b/program/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/program/NEWS b/program/NEWS index b1fa64b3..32ff16e7 100644 --- a/program/NEWS +++ b/program/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/program/doc/rrdgraph_examples.pod b/program/doc/rrdgraph_examples.pod index 7a6aba4d..35301932 100644 --- a/program/doc/rrdgraph_examples.pod +++ b/program/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/program/doc/rrdgraph_graph.pod b/program/doc/rrdgraph_graph.pod index 8aca6499..bba50440 100644 --- a/program/doc/rrdgraph_graph.pod +++ b/program/doc/rrdgraph_graph.pod @@ -12,11 +12,11 @@ BB<:>IB<:>I BB<:>I -BB<:>I