Ticket #50 (closed defect: fixed)

Opened 6 years ago

Last modified 14 months ago

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   

Change History

comment:1 Changed 6 years ago by oetiker

  • Priority changed from major to minor
  • Status changed from new to assigned
  • Version changed from 1.2.15 to 1.3dev
  • Milestone set to RRDtool 1.3

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

comment:2 Changed 14 months ago by oetiker

  • Status changed from assigned to closed
  • Resolution set to fixed

please upgrade to 1.4

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.