Issue 1100 in moose-technology: Unhandled division by zero in Charter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 1100 in moose-technology: Unhandled division by zero in Charter

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Roassal

New issue 1100 by [hidden email]: Unhandled division by zero in  
Charter
https://code.google.com/p/moose-technology/issues/detail?id=1100

In Charter, I get divide by zero exception when y values are zero. Here is  
an example to reproduce the bug:

| b data minDate view color |
        view := RTView new.
        b := RTCharterBuilder new.
        b view: view.
        b extent: 400 @ 200.
        data := {DateAndTime now -> 0 . DateAndTime now + 200 -> 0} asDictionary.
        minDate := data keys min.
        color := Color random.
       
        b interaction popupText: [:each | each ] .
        b shape ellipse
                size: 10;
                color: color.
        b points: data keys.
        b
                x: [ :aDate | aDate asUnixTime - minDate asUnixTime ];
                y: [ :each | data at: each ].
        b connectDotColor: color.
        b axisConfiguration
                labelRotation: -30;
                minValue: 1000;
                numberOfTicks: data keys size -1;
                labelConvertion: [ :v | (DateAndTime fromUnixTime: (v + minDate  
asUnixTime)) asDate].
        b axisX.
        b build.

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 1100 in moose-technology: Unhandled division by zero in Charter

moose-technology
Updates:
        Cc: [hidden email]

Comment #1 on issue 1100 by [hidden email]: Unhandled division by  
zero in Charter
https://code.google.com/p/moose-technology/issues/detail?id=1100

Same applies for Grapher when Y values are zero.

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 1100 in moose-technology: Unhandled division by zero in Charter

moose-technology
Updates:
        Status: Fixed

Comment #2 on issue 1100 by [hidden email]: Unhandled division by  
zero in Charter
https://code.google.com/p/moose-technology/issues/detail?id=1100

This is fixed in today's Roassal version

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev