On Mon, May 14, 2012 at 4:00 PM, Chris Cunningham
<cunningham.cb(a)gmail.com> wrote:
On Mon, May 14, 2012 at 3:40 PM, Andre Hora
<andrehoraa(a)gmail.com>
wrote:
On Tue, May 15, 2012 at 12:19 AM, Chris Cunningham
<cunningham.cb(a)gmail.com>
wrote:
>
> On Tue, May 8, 2012 at 3:18 PM, Andre Hora <andrehoraa(a)gmail.com>
> wrote:
> > Hi,
> >
> [cut]
> >
> > model1 := #(30 29 25 31 28 24 22 26).
> > model2 := #(14 24 21 11 22 13 43 21).
> > model3 := #(0 20 25 14 18 12 12 15).
> >
> [cut]
> > diag2 := (ESDiagramRenderer new lineDiagram)
> > y: #yourself;
> > defaultColor: Color green;
> > models: model2;
> > yourself.
> >
> > diag3 := (ESDiagramRenderer new lineDiagram)
> > y: #yourself;
> > defaultColor: Color blue;
> > models: model3;
> > yourself.
> >
> [snip]
>
> Careful with this! the labels only apply to the first data set (the
> red one) - if you look at the second data set where the max value is
> 43, you'll notice it corresponds to 35 in the diagram; and if you look
> at the third data set (blue) with a max value of 25, you'll also not
> that this corresponds to 35 in the diagram.
>
> So, each data set is scaled to fit on the diagram, but doesn't change
> the range...
Indeed, and to avoid that one can use the "preferredAxisMaxY:"
lineBarCompositeDiagram2
"self new lineBarCompositeDiagram2"
| diag1 diag2 diag3 compDiag model1 model2 model3 |
model1 := #(30 29 25 31 28 24 22 26).
model2 := #(14 24 21 11 22 13 43 21).
model3 := #(0 20 25 14 18 12 12 15).
diag1 := (ESDiagramRenderer new lineDiagram)
y: #yourself;
models: model1;
valueAxis;
defaultColor: Color red;
yourself.
diag2 := (ESDiagramRenderer new lineDiagram)
y: #yourself;
defaultColor: Color green;
models: model2;
yourself.
diag3 := (ESDiagramRenderer new lineDiagram)
y: #yourself;
defaultColor: Color blue;
models: model3;
yourself.
compDiag := ESDiagramRenderer new.
(compDiag compositeDiagram)
add: diag1;
add: diag2;
add: diag3;
preferredAxisMaxY: 45.
^ compDiag open
>
> -Chris
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
--
Andre Hora
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Yes, that is nice. However, when I run it (using the latest
ConfigurationOfEyeSee loadDefault), I get different labels - one label
for every value, which is undesirable. In a different test with a max
Y value of 16,000, it is unreadable and incredibly slow.
This is from an Seaside oneclick 3.0.6, based on Pharo 1.3, I believe.
-Chris
Never mind - I had missed that you changed the first axis call from
#regularAxis to #valueAxis - with that, the axis numbers are
reasonable - and it doesn't cause the image to come to a virtual
standstill.
That said, is there a way to force regular axis on this diagram?
Could I get a label every every 10 multiple, plus say the 45 as well?