Hi Vincent,

Your script was okay. Charter was just buggy. 
-=-=-=-=-=-=-=-=-=-=-=-=
| b values |
b := RTCharterBuilder new.
values := { 5 . 6 . 7 .-1 . -3}.
b extent: 400 @ 300.
b interaction popup.
b points: values.
b connectDotColor: Color red.
b allY: #yourself.
b stackX.
b axisXWithNumberOfTicks: values size.
b axisYWithNumberOfTicks: 6.
b build.
b view
-=-=-=-=-=-=-=-=-=-=-=-=

Here is a slightly different version of your script (the definition of the interaction is __before__ adding the points).

Another example


Currently, x values _cannot_ be negative. It is not complicated to do (if you need this, and if you have time, then go ahead :-), but I need a bit more time. 

Let me this if this version solves your immediate problems. And please, shout if something does not work for you (as you did :-)

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Aug 8, 2014, at 8:32 AM, Blondeau Vincent <vincent.blondeau@worldline.com> wrote:

Hi,
 
I currently use Charter which is doing nice charts for me. But I experienced some kind of bug with the scales of the chart especially if the values are negatives.
See by yourself:
<image001.jpg>
Here the code to draw it:
| b |
b := RTCharterBuilder new.
b extent: 400 @ 300.
b points: { 5 . 6 . 7 .-1 . -3}.
b connectDotColor: Color red.
b interaction popup.
b allY: #yourself.
b stackX.
b axisXWithNumberOfTicks: 4.
b axisYWithNumberOfTicks: 6.
b open.
b view canvas.
 
Did I make something wrong?
 
Thanks in advance !
 
Cheers,
 
Vincent



Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev