pcp
[Top] [All Lists]

pcp updates: improved pmchart time axis labels

To: pcp <pcp@xxxxxxxxxxx>
Subject: pcp updates: improved pmchart time axis labels
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Tue, 15 Sep 2015 13:25:11 +1000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Take or leave this one for the 3.10.7. Not sure how to QA the time axis 
labeling,
really needs visual inspection. I've tested it on short archives and also 
archives
spanning more than a month with a variety of update intervals, visible points 
and
resize events.

Changes committed to git://pcp.io/markgw/pcp/pcp.git master

commit e845faa250562fa493612731e756ff408200ff69
Author: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date:   Tue Sep 15 12:59:43 2015 +1000

    pmchart - improve time axis labeling
Improve the time axis labels in pmchart by including the date under each
    time label when the visible chart interval (delta * visible points) exceeds
    6 hours, and also at midnight. This improves the time axis labeling for
    archives spanning multiple days or longer. Also tweak the major ticks
    calculation to avoid scrunched up time axis labels after a resize event,
    or a change to the visible points or the update interval.
modified: src/pmchart/statusbar.h
        modified:   src/pmchart/timeaxis.cpp
        modified:   src/pmchart/timeaxis.h

<Prev in Thread] Current Thread [Next in Thread>