View Issue Details

IDProjectCategoryView StatusLast Update
0004941mantisbtreportspublic2004-12-11 03:02
Reportermalaussena Assigned Tothraxisp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.1 
Fixed in Version0.19.2 
Summary0004941: Cumulative by date graph doesn't show x-label
Description

In cumulative_by_date graph (see cumulative_by_date.png), x-label are not shown (dates).

In 0004808, I see that it can be shown... what's my problem ?

Thanks.

TagsNo tags attached.
Attached Files
cumulative_by_date.PNG (9,938 bytes)   
cumulative_by_date.PNG (9,938 bytes)   

Relationships

has duplicate 0003982 closed cumulative by date graph : no x label 

Activities

thraxisp

thraxisp

2004-12-07 19:11

reporter   ~0008534

What version of jpgraph do you have? The date labels require at least version 1.14.

malaussena

malaussena

2004-12-08 02:03

reporter   ~0008536

I tried with 1.16 and now with 17.17 beta 2... no success. :-(

malaussena

malaussena

2004-12-08 06:52

reporter   ~0008539

I've found !

In core/graph_api.php, I've replaced

function graph_date_format ($p_date) {
    return strftime( "%D", $p_date );
}

by

function graph_date_format ($p_date) {
    return strftime( "%d/%m/%y", $p_date );
}

And then, I got dates like 'dd/mm/yy'. :-)

So. Probably "%D" doesn't work for french installation of PHP (?), MySQL (?)...
Probably, it would be a good idea to define the date format for graph in config_inc.php.

thraxisp

thraxisp

2004-12-08 10:11

reporter   ~0008541

Fixed in CVS. Date format is now controlled by existing $g_short_date_format. (strftime is locale specific)