Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

32.10. AREA, LINE and STACK

32.10.1. LINE

rrdtool graph graph.png --title="Test Graph" --height=400 --width=800 --vertical-label="Bits per second" \
	DEF:pkt=datafile.rrd:packets:AVERAGE \
	LINE1:pkt#ff0000:Packets
			

32.10.2. AREA

rrdtool graph graph.png --title="Test Graph" --height=400 --width=800 --vertical-label="Bits per second" \
	DEF:pkt=datafile.rrd:packets:AVERAGE \
	AREA:pkt#ff0000:Packets
			

32.10.3. STACK

rrdtool graph graph.png --title="Test Graph" --height=400 --width=800 --vertical-label="Bits per second" \
	DEF:pkt=datafile.rrd:packets:AVERAGE \
	LINE1:pkt#ff0000:Packets \
	STACK:pkt#0000ff:Packets

AREA:x1#FF0000:x1
STACK:x2#0000FF:x2

LINE2:x1#FF0000:x1
STACK:x2#0000FF:x2+x1

LINE2:x1#FF0000:x1
AREA:x2#0000FF:x2:STACK
			

32.10.4. GPRINT