← Back to team overview

dhis2-devs team mailing list archive

[Bug 426194] Re: DHIS2 mapping module does not respect decimal values in class breaks

 

** Changed in: dhis2
     Assignee: (unassigned) => Jan Henrik Øverland (janhenrik-overland)

** Changed in: dhis2
       Status: New => Confirmed

** Changed in: dhis2
    Milestone: None => 2.0.4

-- 
DHIS2 mapping module does not respect decimal values in class breaks
https://bugs.launchpad.net/bugs/426194
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: Confirmed

Bug description:
I tried to define class breaks manually in the mapping module, but it seems to only respect integer values. 
My class breaks were defined as follows..

0.0,0.5,1.0,4.0,10.0,56.3

Class breaks in the module appear as follows

0.0 - 0.0   ( 0 )
0.0 - 0.0   ( 0 )
0.0 - 1.0   ( 33 )
1.0 - 4.0   ( 14 )
4.0 - 10.0   ( 19 )
10.0 - 56.0   ( 5 )
56.0 - 56.3   ( 1 )

Also, some 0 values are reported as 0 while others are reported as 0.0. I suspect the 0 values are nulls, which the 0.0 values are true zeros. Ideally, I would 
1) like to define a class break for any NULL values
2) define a class break for true 0 values (0.0)
3) define other class breaks with decimal values and not have them truncated to integers.



References