Ticket #50 (closed defect: fixed)
AREA is not drawn to the end of graph, last column of dots is missing.
| Reported by: | hrvoje.marjanovic@… | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | RRDtool 1.3 |
| Component: | rrd_graph | Version: | 1.3dev |
| Keywords: | Cc: | hrvoje.marjanovic@… |
Description
When you make simple graph as created by script below, AREA part is not drawn to the end of graph, last column of dots is missing.
It's not about consolidation because LINE is drawn properly as you can see on test image created by script.
Hrvoje
Here is the script: (tested on 1.2.15)
#!/bin/bash #create db rm -f test.rrd 2> /dev/null rrdtool create test.rrd -s 60 DS:in:GAUGE:120:U:125000000 DS:out:GAUGE:120:U:125000000 RRA:AVERAGE:0.5:1:129600 RRA:AVERAGE:0.5:12:105120 # add some sample values stamp=$(date +%s) minute_stamp=$(echo "$stamp - $(echo $stamp % 60 |bc)"|bc) for i in $(seq 0 100) do temp_stamp=$(echo "$minute_stamp + $i*60"|bc) echo $temp_stamp rrdtool update test.rrd $temp_stamp:100:100 done # and final demonstration rrdtool graph test.png -w 100 --zoom 5\ -s $minute_stamp -e $(echo "$minute_stamp + 100*60"|bc) \ DEF:in=test.rrd:in:AVERAGE \ AREA:in#ff0000 \ LINE1:in#000000



This is an artifact of the way I am trying to match the grid ... lines and fills are thus shifted by half a pixel ... this may look odd at high resolutions ... will look at this again once migration to cairo is done.
cheers tobi