SeaChart and ploting negatives

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

SeaChart and ploting negatives

Sebastian Sastre-2
Hi there,
   
    I wish to be able to plot a cashflow and I've see in the PlotKit page that the bars or lines has allways a plot in the positive range. Anybody has a clue on how to represent negative values?
 
    thanks,
 

Sebastian Sastre

 

[hidden email]

Seaswork 

Special Software Solutions

 

 

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SeaChart and ploting negatives

Philippe Marschall
2007/2/4, Sebastian Sastre <[hidden email]>:
>
>
> Hi there,
>
>     I wish to be able to plot a cashflow and I've see in the PlotKit page
> that the bars or lines has allways a plot in the positive range.

Because plotting negative values it quite broken ;)

> Anybody has
> a clue on how to represent negative values?

The trick is:
aChart layoutOptions yOriginIsZero: false

But even then, it will not look like what I and probably you will
expect it to look like. An example for line charts
http://media.liquidx.net/js/plotkit-tests/quickstart-neg.html

Only if you use line charts without filling but stoking, then negative
values should look ok.

Cheers
Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: SeaChart and ploting negatives

Sebastian Sastre-2
 
Very sad... And thanks for the tip. I'll try it with the bars.

Cheers,

Sebastian Sastre


-----Mensaje original-----
De: [hidden email]
[mailto:[hidden email]] En nombre de Philippe
Marschall
Enviado el: Domingo, 04 de Febrero de 2007 09:00
Para: The Squeak Enterprise Aubergines Server - general discussion.
Asunto: Re: [Seaside] SeaChart and ploting negatives

2007/2/4, Sebastian Sastre <[hidden email]>:
>
>
> Hi there,
>
>     I wish to be able to plot a cashflow and I've see in the PlotKit
> page that the bars or lines has allways a plot in the positive range.

Because plotting negative values it quite broken ;)

> Anybody has
> a clue on how to represent negative values?

The trick is:
aChart layoutOptions yOriginIsZero: false

But even then, it will not look like what I and probably you will expect it
to look like. An example for line charts
http://media.liquidx.net/js/plotkit-tests/quickstart-neg.html

Only if you use line charts without filling but stoking, then negative
values should look ok.

Cheers
Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside