Yes, you need to update Roassal2. You can use the Monticello browser for this, or simply download a new image (Moose 5.0 beta image)
#minFor: is defined on the class Collection
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Sep 22, 2014, at 9:38 PM, Offray Vladimir Luna Cárdenas
offray@riseup.net wrote:
> Hi Alexandre,
>
> This seems related with other question I have made on the Pharo list about visualizing the history of a SmalltalkHub repository, so I gave it a shot, but when I paste the code "minFor:" and "labelRotaion:" are in red. Need I to update something? (system update keep them red).
>
> Cheers,
>
> Offray
>
> On 09/22/2014 03:31 PM, Alexandre Bergel wrote:
>> Hi!
>>
>> Here is a post that describe how to have dates on the X-axis.
>> This has been a recurrent problem, which is why I would like to share it with you.
>>
>> Dates are particular values that requires an adequate control over what is being
>> displayed on X-axis. The julianDayNumber converts a date into a number.
>>
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> methods := RTObject withAllSubclasses flatCollect: #methods.
>> methods := methods reject: [ :m | m numberOfLinesOfCode > 150 ].
>> oldestMethod := methods minFor: #date.
>>
>> b := RTCharterBuilder new.
>> b extent: 800 @ 200.
>> b shape circle size: 5; color: (Color blue alpha: 0.1).
>> b interaction popup.
>> b points: methods.
>> b allY: #numberOfLinesOfCode.
>> b allX: [ :m | m date julianDayNumber - oldestMethod date julianDayNumber ].
>>
>> b axisConfiguration
>> noDecimals;
>> title: 'LOC'.
>> b axisY.
>> b axisConfiguration
>> title: '';
>> labelRotation: -30;
>> numberOfTicks: 10;
>> numberOfLabels: 10;
>> labelConvertion: [ :v | (Date julianDayNumber: v + oldestMethod date
>> julianDayNumber) ].
>> b axisX.
>>
>> b build
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel
http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev@iam.unibe.ch
>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev