Thanks Matt, that works!
Just a spin-off question:
Before raising the question on the mailinglist, I tried using the same
method but failed because I tried to extract the max value from the
diagrams themselves. The code below illustrates that attempt.
It might be a stupid question (because I ignore the details of
EyeSee's implementation) but would something like that be possible or
should I always calculate the max value beforehand?
And keep up the nice work!
good night
Johan
diag1 := (DiagramRenderer new lineDiagram)
y: #yValue;
models: models1;
regularAxis;
defaultColor: #darkGray;
yourself.
diag2 := (DiagramRenderer new verticalBarDiagram)
y: #yValue;
models: models2;
yourself.
diag3 := DiagramRenderer new.
max := diag1 axisMaxY max: diag2 axisMaxY.
diag1 axisMaxY: max.
diag2 axisMaxY: max.
(diag3 compositeDiagram)
add: diag2;
add: diag1;
width: 400;
height: 300.
diag3 open
On 31 Jan 2008, at 20:06, Matthias Junker wrote:
Hi,
For now you can use axisMaxY: on both diagrams to make sure they have
the same scale.
There's no specific method for this case yet in the CompositeDiagram
but
i'll implement this in the next release, so you can set axisMaxY:
directly on the composite.
For now do it like this:
diag1 := (DiagramRenderer new lineDiagram)
y: #yValue;
models: models1;
axisMaxY: maxYOfBothModels;
regularAxis;
defaultColor: #darkGray;
yourself.
diag2 := (DiagramRenderer new verticalBarDiagram)
y: #yValue;
axisMaxY: maxYOfBothModels;;
models: models2;
yourself.
diag3 := DiagramRenderer new.
(diag3 compositeDiagram)
add: diag2;
add: diag1;
width: 400;
height: 300.
diag3 open
Cheers,
Matt
Hi everyone,
I've got a quick question concerning EyeSee.
We are trying to create a composed bar diagram like the
#barCompositeDiagriam in the Examples included with EyeSee.
However, in our case, we need the two Y-axis of both diagrams to be
equal. Otherwise said, the maximum Y-value shown on both Y-axis
should
be the same such that the composed/overlapping bars in the diagram
are
visualized w.r.t. the same absolute Y-value. In all examples I can
find for the composite diagrams, the Y-axis of both diagrams is
independent and has a different scale.
Is there a way to make the Y-axis equal? Or can we force the Y-axis
of
one of the diagrams in the composite to match its scale with the Y-
axis of the other diagram?
thanks for any suggestions!
----------------------------
Johan Brichau
johan.brichau(a)uclouvain.be
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
----------------------------
Johan Brichau
johan.brichau(a)uclouvain.be