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@uclouvain.be
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev