Thank u so much Doru.
This example does exactly what I want.
I just knew where is the problem, it is simply coming from '#displayLegend'!
Apparently displaying legends requires some pre-conditions and the best
solution is to do: 'displayLegend: false'.
2009/3/17 Tudor Girba <girba(a)iam.unibe.ch>
Take a look at EyeSee.Examples>>verticalBar7. It does exactly pretty much
what you want. Or?
On 16 Mar 2009, at 12:12, Hani Abdeen wrote:
> I want to use EyeSee and I've some questions:
> first, how to give different colors to 'Bars' into a verticalBarDiagram?
> precisely, if: models := (models1 union: models2), how to say to diagram
> if models1 includes: current then
> current visualBar color -> #green
> current visualBar color -> #red
> I did this but It does not work:
> |diag models removedModels|
> models := ...
> removedModels := ...
> diag := Smalltalk.EyeSee.DiagramRenderer new.
> (diag verticalBarDiagram)
> y: #size;
> color: [:each| models includes: each];
> models: (models addAll: removedModels; yourself).
> diag open.
> Moose-dev mailing list
"What we can governs what we wish."
Moose-dev mailing list