← Back to team overview

dhis2-devs team mailing list archive

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

 

Public bug reported:

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.

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
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: New

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.



Follow ups

References