Feature for request for GraphET?

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

Feature for request for GraphET?

abergel
Hi!

Daniel is looking for usage scenarios with GraphET. It would be great to hear about your need.
Currently, we will work on:
  - PDF Export using Artefact
  - support for legend
  - smarter way to put labels on axis

Anything else?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Feature for request for GraphET?

Uko2
Hi everyone.

I think that my idea about unscalable element can be still interesting. Eg: you have scatterplot and you want to zoom to dive into a cluster of elements, but keep them the same size, just scale the pane.

Uko

On 02 Jan 2014, at 20:24, Alexandre Bergel <[hidden email]> wrote:

> Hi!
>
> Daniel is looking for usage scenarios with GraphET. It would be great to hear about your need.
> Currently, we will work on:
>  - PDF Export using Artefact
>  - support for legend
>  - smarter way to put labels on axis
>
> Anything else?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Feature for request for GraphET?

abergel
> I think that my idea about unscalable element can be still interesting. Eg: you have scatterplot and you want to zoom to dive into a cluster of elements, but keep them the same size, just scale the pane.

Looks interesting!

Alexandre

>
> On 02 Jan 2014, at 20:24, Alexandre Bergel <[hidden email]> wrote:
>
>> Hi!
>>
>> Daniel is looking for usage scenarios with GraphET. It would be great to hear about your need.
>> Currently, we will work on:
>> - PDF Export using Artefact
>> - support for legend
>> - smarter way to put labels on axis
>>
>> Anything else?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Feature for request for GraphET?

Kevin Lanvin
I'm trying to export some graphs on Seaside components.
But all the exporting methods you've done are ok if you want to do a simple HTML page.
It's not generic enough because of tags la <head> , i can't use the exported code to put it in the middle of a page.
Maybe methods to write the code on a Stream should be more reusable. I'm thinking about <head> and <body> tags, maybe they shouldn't be mixed with the javascript code.

It's just details, but it's not easily reusable because of it.

----- Mail original -----

> De: "Alexandre Bergel" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Jeudi 2 Janvier 2014 21:34:27
> Objet: [Moose-dev] Re: Feature for request for GraphET?
>
> > I think that my idea about unscalable element can be still
> > interesting. Eg: you have scatterplot and you want to zoom to dive
> > into a cluster of elements, but keep them the same size, just
> > scale the pane.
>
> Looks interesting!
>
> Alexandre
>
> >
> > On 02 Jan 2014, at 20:24, Alexandre Bergel
> > <[hidden email]> wrote:
> >
> >> Hi!
> >>
> >> Daniel is looking for usage scenarios with GraphET. It would be
> >> great to hear about your need.
> >> Currently, we will work on:
> >> - PDF Export using Artefact
> >> - support for legend
> >> - smarter way to put labels on axis
> >>
> >> Anything else?
> >>
> >> Cheers,
> >> Alexandre
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Feature for request for GraphET?

abergel
I see. Maybe you can modify ROPharoHTMLExporter ?
Just send me your changes (.cs or .mcz files)

Cheers,
Alexandre


On Jan 3, 2014, at 10:41 AM, Kevin Lanvin <[hidden email]> wrote:

> I'm trying to export some graphs on Seaside components.
> But all the exporting methods you've done are ok if you want to do a simple HTML page.
> It's not generic enough because of tags la <head> , i can't use the exported code to put it in the middle of a page.
> Maybe methods to write the code on a Stream should be more reusable. I'm thinking about <head> and <body> tags, maybe they shouldn't be mixed with the javascript code.
>
> It's just details, but it's not easily reusable because of it.
>
> ----- Mail original -----
>> De: "Alexandre Bergel" <[hidden email]>
>> À: "Moose-related development" <[hidden email]>
>> Envoyé: Jeudi 2 Janvier 2014 21:34:27
>> Objet: [Moose-dev] Re: Feature for request for GraphET?
>>
>>> I think that my idea about unscalable element can be still
>>> interesting. Eg: you have scatterplot and you want to zoom to dive
>>> into a cluster of elements, but keep them the same size, just
>>> scale the pane.
>>
>> Looks interesting!
>>
>> Alexandre
>>
>>>
>>> On 02 Jan 2014, at 20:24, Alexandre Bergel
>>> <[hidden email]> wrote:
>>>
>>>> Hi!
>>>>
>>>> Daniel is looking for usage scenarios with GraphET. It would be
>>>> great to hear about your need.
>>>> Currently, we will work on:
>>>> - PDF Export using Artefact
>>>> - support for legend
>>>> - smarter way to put labels on axis
>>>>
>>>> Anything else?
>>>>
>>>> Cheers,
>>>> Alexandre
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Fwd: [Pharo-dev] Feature for request for GraphET?

Tudor Girba-2
In reply to this post by abergel
Reposting here, just in case you missed it :)

Doru

---------- Forwarded message ----------
From: Tudor Girba <[hidden email]>
Date: Sat, Jan 4, 2014 at 10:39 PM
Subject: Re: [Pharo-dev] Feature for request for GraphET?
To: Pharo Development List <[hidden email]>


Here is one thing I would want: a correspondent Graph-ET functionality to make something like this EyeSee script work as in the first attached picture.

renderer := ESDiagramRenderer new.
grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 } . #item3->{ 1 . 1 . 1 . 1 . 1} }.
diag := (ESVerticalBarDiagram new)
identifier: [:each | each key ];
y: [:each | each value size];
yAxisLabel: 'Count';
valueAxis;
rightYAxis;
defaultColor: Color veryVeryLightGray;
axisColor: Color veryVeryLightGray;
models: grouped;
rotatedLabels: true;
yourself.
diag2 := (ESVerticalBarDiagram new)
y: [:each | each value sum];
regularAxis;
yAxisLabel: 'Sum';
gapFraction: 2 / 3;
defaultColor: (Color red);
axisColor: (Color red);
models: grouped;
yourself.
(renderer compositeDiagram)
add: diag;
add: diag2.
renderer open


Inline image 2


The best I could produce with Graph-ET is this (I commented out the message to which I did not find a correspondent):

builder := GETDiagramBuilder new.
grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 } . #item3->{ 1 . 1 . 1 . 1 . 1} }.
diag := (GETVerticalBarDiagram new)
"identifier: [:each | each key ];"
y: [:each | each value size];
yAxisLabel: 'Count';
valueAxisLine;
"rightYAxis;"
color: Color veryLightGray;
"axisColor: Color veryLightGray;"
models: grouped;
"rotatedLabels: true;"
yourself.
diag2 := (GETVerticalBarDiagram new)
y: [:each | each value sum];
regularAxis;
yAxisLabel: 'Sum';
"gapFraction: 2 / 3;"
color: (Color red);
"axisColor: (Color red);"
models: grouped;
yourself.
(builder compositeDiagram)
add: diag;
add: diag2.
builder open

Inline image 4

Cheers,
Doru




On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

Daniel is looking for usage scenarios with GraphET. It would be great to hear about your need.
Currently, we will work on:
  - PDF Export using Artefact
  - support for legend
  - smarter way to put labels on axis

Anything else?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







--

"Every thing has its own flow"



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

abergel
:-)

That will be the roadmap for week

Alexandre


On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]> wrote:

> Reposting here, just in case you missed it :)
>
> Doru
>
> ---------- Forwarded message ----------
> From: Tudor Girba <[hidden email]>
> Date: Sat, Jan 4, 2014 at 10:39 PM
> Subject: Re: [Pharo-dev] Feature for request for GraphET?
> To: Pharo Development List <[hidden email]>
>
>
> Here is one thing I would want: a correspondent Graph-ET functionality to make something like this EyeSee script work as in the first attached picture.
>
> renderer := ESDiagramRenderer new.
> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 } . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> diag := (ESVerticalBarDiagram new)
> identifier: [:each | each key ];
> y: [:each | each value size];
> yAxisLabel: 'Count';
> valueAxis;
> rightYAxis;
> defaultColor: Color veryVeryLightGray;
> axisColor: Color veryVeryLightGray;
> models: grouped;
> rotatedLabels: true;
> yourself.
> diag2 := (ESVerticalBarDiagram new)
> y: [:each | each value sum];
> regularAxis;
> yAxisLabel: 'Sum';
> gapFraction: 2 / 3;
> defaultColor: (Color red);
> axisColor: (Color red);
> models: grouped;
> yourself.
> (renderer compositeDiagram)
> add: diag;
> add: diag2.
> renderer open
>
>
> <Screenshot 2014-01-04 22.31.57.png>
>
>
> The best I could produce with Graph-ET is this (I commented out the message to which I did not find a correspondent):
>
> builder := GETDiagramBuilder new.
> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 } . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> diag := (GETVerticalBarDiagram new)
> "identifier: [:each | each key ];"
> y: [:each | each value size];
> yAxisLabel: 'Count';
> valueAxisLine;
> "rightYAxis;"
> color: Color veryLightGray;
> "axisColor: Color veryLightGray;"
> models: grouped;
> "rotatedLabels: true;"
> yourself.
> diag2 := (GETVerticalBarDiagram new)
> y: [:each | each value sum];
> regularAxis;
> yAxisLabel: 'Sum';
> "gapFraction: 2 / 3;"
> color: (Color red);
> "axisColor: (Color red);"
> models: grouped;
> yourself.
> (builder compositeDiagram)
> add: diag;
> add: diag2.
> builder open
>
> <Screenshot 2014-01-04 22.36.40.png>
>
> Cheers,
> Doru
>
>
>
>
> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel <[hidden email]> wrote:
> Hi!
>
> Daniel is looking for usage scenarios with GraphET. It would be great to hear about your need.
> Currently, we will work on:
>   - PDF Export using Artefact
>   - support for legend
>   - smarter way to put labels on axis
>
> Anything else?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Kevin Lanvin
Hello,
I'm displaying a graph on the web , and it's working well, but then I want tu put a second diagram on my page.
But diagrams are displayed in <div id="chart"></div>
So i can't use a second division to display another one.
Could it be possible to use class instead of id ?

----- Mail original -----

> De: "Alexandre Bergel" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 02:16:48
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> :-)
>
> That will be the roadmap for week
>
> Alexandre
>
>
> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]> wrote:
>
> > Reposting here, just in case you missed it :)
> >
> > Doru
> >
> > ---------- Forwarded message ----------
> > From: Tudor Girba <[hidden email]>
> > Date: Sat, Jan 4, 2014 at 10:39 PM
> > Subject: Re: [Pharo-dev] Feature for request for GraphET?
> > To: Pharo Development List <[hidden email]>
> >
> >
> > Here is one thing I would want: a correspondent Graph-ET
> > functionality to make something like this EyeSee script work as in
> > the first attached picture.
> >
> > renderer := ESDiagramRenderer new.
> > grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 }
> > . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > diag := (ESVerticalBarDiagram new)
> > identifier: [:each | each key ];
> > y: [:each | each value size];
> > yAxisLabel: 'Count';
> > valueAxis;
> > rightYAxis;
> > defaultColor: Color veryVeryLightGray;
> > axisColor: Color veryVeryLightGray;
> > models: grouped;
> > rotatedLabels: true;
> > yourself.
> > diag2 := (ESVerticalBarDiagram new)
> > y: [:each | each value sum];
> > regularAxis;
> > yAxisLabel: 'Sum';
> > gapFraction: 2 / 3;
> > defaultColor: (Color red);
> > axisColor: (Color red);
> > models: grouped;
> > yourself.
> > (renderer compositeDiagram)
> > add: diag;
> > add: diag2.
> > renderer open
> >
> >
> > <Screenshot 2014-01-04 22.31.57.png>
> >
> >
> > The best I could produce with Graph-ET is this (I commented out the
> > message to which I did not find a correspondent):
> >
> > builder := GETDiagramBuilder new.
> > grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 }
> > . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > diag := (GETVerticalBarDiagram new)
> > "identifier: [:each | each key ];"
> > y: [:each | each value size];
> > yAxisLabel: 'Count';
> > valueAxisLine;
> > "rightYAxis;"
> > color: Color veryLightGray;
> > "axisColor: Color veryLightGray;"
> > models: grouped;
> > "rotatedLabels: true;"
> > yourself.
> > diag2 := (GETVerticalBarDiagram new)
> > y: [:each | each value sum];
> > regularAxis;
> > yAxisLabel: 'Sum';
> > "gapFraction: 2 / 3;"
> > color: (Color red);
> > "axisColor: (Color red);"
> > models: grouped;
> > yourself.
> > (builder compositeDiagram)
> > add: diag;
> > add: diag2.
> > builder open
> >
> > <Screenshot 2014-01-04 22.36.40.png>
> >
> > Cheers,
> > Doru
> >
> >
> >
> >
> > On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
> > <[hidden email]> wrote:
> > Hi!
> >
> > Daniel is looking for usage scenarios with GraphET. It would be
> > great to hear about your need.
> > Currently, we will work on:
> >   - PDF Export using Artefact
> >   - support for legend
> >   - smarter way to put labels on axis
> >
> > Anything else?
> >
> > Cheers,
> > Alexandre
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> >
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
> >
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

abergel
Sure! Feel free to provide a fix for this. Sending .st or .cs files is fine :-)

Alexandre


On Jan 6, 2014, at 11:29 AM, Kevin Lanvin <[hidden email]> wrote:

> Hello,
> I'm displaying a graph on the web , and it's working well, but then I want tu put a second diagram on my page.
> But diagrams are displayed in <div id="chart"></div>
> So i can't use a second division to display another one.
> Could it be possible to use class instead of id ?
>
> ----- Mail original -----
>> De: "Alexandre Bergel" <[hidden email]>
>> À: "Moose-related development" <[hidden email]>
>> Envoyé: Lundi 6 Janvier 2014 02:16:48
>> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>>
>> :-)
>>
>> That will be the roadmap for week
>>
>> Alexandre
>>
>>
>> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]> wrote:
>>
>>> Reposting here, just in case you missed it :)
>>>
>>> Doru
>>>
>>> ---------- Forwarded message ----------
>>> From: Tudor Girba <[hidden email]>
>>> Date: Sat, Jan 4, 2014 at 10:39 PM
>>> Subject: Re: [Pharo-dev] Feature for request for GraphET?
>>> To: Pharo Development List <[hidden email]>
>>>
>>>
>>> Here is one thing I would want: a correspondent Graph-ET
>>> functionality to make something like this EyeSee script work as in
>>> the first attached picture.
>>>
>>> renderer := ESDiagramRenderer new.
>>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 }
>>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
>>> diag := (ESVerticalBarDiagram new)
>>> identifier: [:each | each key ];
>>> y: [:each | each value size];
>>> yAxisLabel: 'Count';
>>> valueAxis;
>>> rightYAxis;
>>> defaultColor: Color veryVeryLightGray;
>>> axisColor: Color veryVeryLightGray;
>>> models: grouped;
>>> rotatedLabels: true;
>>> yourself.
>>> diag2 := (ESVerticalBarDiagram new)
>>> y: [:each | each value sum];
>>> regularAxis;
>>> yAxisLabel: 'Sum';
>>> gapFraction: 2 / 3;
>>> defaultColor: (Color red);
>>> axisColor: (Color red);
>>> models: grouped;
>>> yourself.
>>> (renderer compositeDiagram)
>>> add: diag;
>>> add: diag2.
>>> renderer open
>>>
>>>
>>> <Screenshot 2014-01-04 22.31.57.png>
>>>
>>>
>>> The best I could produce with Graph-ET is this (I commented out the
>>> message to which I did not find a correspondent):
>>>
>>> builder := GETDiagramBuilder new.
>>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20 }
>>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
>>> diag := (GETVerticalBarDiagram new)
>>> "identifier: [:each | each key ];"
>>> y: [:each | each value size];
>>> yAxisLabel: 'Count';
>>> valueAxisLine;
>>> "rightYAxis;"
>>> color: Color veryLightGray;
>>> "axisColor: Color veryLightGray;"
>>> models: grouped;
>>> "rotatedLabels: true;"
>>> yourself.
>>> diag2 := (GETVerticalBarDiagram new)
>>> y: [:each | each value sum];
>>> regularAxis;
>>> yAxisLabel: 'Sum';
>>> "gapFraction: 2 / 3;"
>>> color: (Color red);
>>> "axisColor: (Color red);"
>>> models: grouped;
>>> yourself.
>>> (builder compositeDiagram)
>>> add: diag;
>>> add: diag2.
>>> builder open
>>>
>>> <Screenshot 2014-01-04 22.36.40.png>
>>>
>>> Cheers,
>>> Doru
>>>
>>>
>>>
>>>
>>> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
>>> <[hidden email]> wrote:
>>> Hi!
>>>
>>> Daniel is looking for usage scenarios with GraphET. It would be
>>> great to hear about your need.
>>> Currently, we will work on:
>>>  - PDF Export using Artefact
>>>  - support for legend
>>>  - smarter way to put labels on axis
>>>
>>> Anything else?
>>>
>>> Cheers,
>>> Alexandre
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> www.tudorgirba.com
>>>
>>> "Every thing has its own flow"
>>>
>>>
>>>
>>> --
>>> www.tudorgirba.com
>>>
>>> "Every thing has its own flow"
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Kevin Lanvin
I'm not able to do it myself. I've never done javascript before and I think the problem is coming from here.
I'm sorry to ask you so much with graph-ET.


----- Mail original -----

> De: "Alexandre Bergel" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 16:06:26
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> Sure! Feel free to provide a fix for this. Sending .st or .cs files
> is fine :-)
>
> Alexandre
>
>
> On Jan 6, 2014, at 11:29 AM, Kevin Lanvin <[hidden email]>
> wrote:
>
> > Hello,
> > I'm displaying a graph on the web , and it's working well, but then
> > I want tu put a second diagram on my page.
> > But diagrams are displayed in <div id="chart"></div>
> > So i can't use a second division to display another one.
> > Could it be possible to use class instead of id ?
> >
> > ----- Mail original -----
> >> De: "Alexandre Bergel" <[hidden email]>
> >> À: "Moose-related development" <[hidden email]>
> >> Envoyé: Lundi 6 Janvier 2014 02:16:48
> >> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for
> >> GraphET?
> >>
> >> :-)
> >>
> >> That will be the roadmap for week
> >>
> >> Alexandre
> >>
> >>
> >> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]>
> >> wrote:
> >>
> >>> Reposting here, just in case you missed it :)
> >>>
> >>> Doru
> >>>
> >>> ---------- Forwarded message ----------
> >>> From: Tudor Girba <[hidden email]>
> >>> Date: Sat, Jan 4, 2014 at 10:39 PM
> >>> Subject: Re: [Pharo-dev] Feature for request for GraphET?
> >>> To: Pharo Development List <[hidden email]>
> >>>
> >>>
> >>> Here is one thing I would want: a correspondent Graph-ET
> >>> functionality to make something like this EyeSee script work as
> >>> in
> >>> the first attached picture.
> >>>
> >>> renderer := ESDiagramRenderer new.
> >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> >>> }
> >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> >>> diag := (ESVerticalBarDiagram new)
> >>> identifier: [:each | each key ];
> >>> y: [:each | each value size];
> >>> yAxisLabel: 'Count';
> >>> valueAxis;
> >>> rightYAxis;
> >>> defaultColor: Color veryVeryLightGray;
> >>> axisColor: Color veryVeryLightGray;
> >>> models: grouped;
> >>> rotatedLabels: true;
> >>> yourself.
> >>> diag2 := (ESVerticalBarDiagram new)
> >>> y: [:each | each value sum];
> >>> regularAxis;
> >>> yAxisLabel: 'Sum';
> >>> gapFraction: 2 / 3;
> >>> defaultColor: (Color red);
> >>> axisColor: (Color red);
> >>> models: grouped;
> >>> yourself.
> >>> (renderer compositeDiagram)
> >>> add: diag;
> >>> add: diag2.
> >>> renderer open
> >>>
> >>>
> >>> <Screenshot 2014-01-04 22.31.57.png>
> >>>
> >>>
> >>> The best I could produce with Graph-ET is this (I commented out
> >>> the
> >>> message to which I did not find a correspondent):
> >>>
> >>> builder := GETDiagramBuilder new.
> >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> >>> }
> >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> >>> diag := (GETVerticalBarDiagram new)
> >>> "identifier: [:each | each key ];"
> >>> y: [:each | each value size];
> >>> yAxisLabel: 'Count';
> >>> valueAxisLine;
> >>> "rightYAxis;"
> >>> color: Color veryLightGray;
> >>> "axisColor: Color veryLightGray;"
> >>> models: grouped;
> >>> "rotatedLabels: true;"
> >>> yourself.
> >>> diag2 := (GETVerticalBarDiagram new)
> >>> y: [:each | each value sum];
> >>> regularAxis;
> >>> yAxisLabel: 'Sum';
> >>> "gapFraction: 2 / 3;"
> >>> color: (Color red);
> >>> "axisColor: (Color red);"
> >>> models: grouped;
> >>> yourself.
> >>> (builder compositeDiagram)
> >>> add: diag;
> >>> add: diag2.
> >>> builder open
> >>>
> >>> <Screenshot 2014-01-04 22.36.40.png>
> >>>
> >>> Cheers,
> >>> Doru
> >>>
> >>>
> >>>
> >>>
> >>> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
> >>> <[hidden email]> wrote:
> >>> Hi!
> >>>
> >>> Daniel is looking for usage scenarios with GraphET. It would be
> >>> great to hear about your need.
> >>> Currently, we will work on:
> >>>  - PDF Export using Artefact
> >>>  - support for legend
> >>>  - smarter way to put labels on axis
> >>>
> >>> Anything else?
> >>>
> >>> Cheers,
> >>> Alexandre
> >>> --
> >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >>> Alexandre Bergel  http://www.bergel.eu
> >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> www.tudorgirba.com
> >>>
> >>> "Every thing has its own flow"
> >>>
> >>>
> >>>
> >>> --
> >>> www.tudorgirba.com
> >>>
> >>> "Every thing has its own flow"
> >>> _______________________________________________
> >>> Moose-dev mailing list
> >>> [hidden email]
> >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Daniel Aviv Notario
Nonesense! It's a preasure to having you asking us thing in Graph-ET, that just means you're using it, and it's cool :)

> Date: Mon, 6 Jan 2014 16:42:14 +0100

> From: [hidden email]
> To: [hidden email]
> Subject: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> I'm not able to do it myself. I've never done javascript before and I think the problem is coming from here.
> I'm sorry to ask you so much with graph-ET.
>
>
> ----- Mail original -----
> > De: "Alexandre Bergel" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:06:26
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> > Sure! Feel free to provide a fix for this. Sending .st or .cs files
> > is fine :-)
> >
> > Alexandre
> >
> >
> > On Jan 6, 2014, at 11:29 AM, Kevin Lanvin <[hidden email]>
> > wrote:
> >
> > > Hello,
> > > I'm displaying a graph on the web , and it's working well, but then
> > > I want tu put a second diagram on my page.
> > > But diagrams are displayed in <div id="chart"></div>
> > > So i can't use a second division to display another one.
> > > Could it be possible to use class instead of id ?
> > >
> > > ----- Mail original -----
> > >> De: "Alexandre Bergel" <[hidden email]>
> > >> À: "Moose-related development" <[hidden email]>
> > >> Envoyé: Lundi 6 Janvier 2014 02:16:48
> > >> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for
> > >> GraphET?
> > >>
> > >> :-)
> > >>
> > >> That will be the roadmap for week
> > >>
> > >> Alexandre
> > >>
> > >>
> > >> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]>
> > >> wrote:
> > >>
> > >>> Reposting here, just in case you missed it :)
> > >>>
> > >>> Doru
> > >>>
> > >>> ---------- Forwarded message ----------
> > >>> From: Tudor Girba <[hidden email]>
> > >>> Date: Sat, Jan 4, 2014 at 10:39 PM
> > >>> Subject: Re: [Pharo-dev] Feature for request for GraphET?
> > >>> To: Pharo Development List <[hidden email]>
> > >>>
> > >>>
> > >>> Here is one thing I would want: a correspondent Graph-ET
> > >>> functionality to make something like this EyeSee script work as
> > >>> in
> > >>> the first attached picture.
> > >>>
> > >>> renderer := ESDiagramRenderer new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (ESVerticalBarDiagram new)
> > >>> identifier: [:each | each key ];
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxis;
> > >>> rightYAxis;
> > >>> defaultColor: Color veryVeryLightGray;
> > >>> axisColor: Color veryVeryLightGray;
> > >>> models: grouped;
> > >>> rotatedLabels: true;
> > >>> yourself.
> > >>> diag2 := (ESVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> gapFraction: 2 / 3;
> > >>> defaultColor: (Color red);
> > >>> axisColor: (Color red);
> > >>> models: grouped;
> > >>> yourself.
> > >>> (renderer compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> renderer open
> > >>>
> > >>>
> > >>> <Screenshot 2014-01-04 22.31.57.png>
> > >>>
> > >>>
> > >>> The best I could produce with Graph-ET is this (I commented out
> > >>> the
> > >>> message to which I did not find a correspondent):
> > >>>
> > >>> builder := GETDiagramBuilder new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (GETVerticalBarDiagram new)
> > >>> "identifier: [:each | each key ];"
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxisLine;
> > >>> "rightYAxis;"
> > >>> color: Color veryLightGray;
> > >>> "axisColor: Color veryLightGray;"
> > >>> models: grouped;
> > >>> "rotatedLabels: true;"
> > >>> yourself.
> > >>> diag2 := (GETVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> "gapFraction: 2 / 3;"
> > >>> color: (Color red);
> > >>> "axisColor: (Color red);"
> > >>> models: grouped;
> > >>> yourself.
> > >>> (builder compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> builder open
> > >>>
> > >>> <Screenshot 2014-01-04 22.36.40.png>
> > >>>
> > >>> Cheers,
> > >>> Doru
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
> > >>> <[hidden email]> wrote:
> > >>> Hi!
> > >>>
> > >>> Daniel is looking for usage scenarios with GraphET. It would be
> > >>> great to hear about your need.
> > >>> Currently, we will work on:
> > >>> - PDF Export using Artefact
> > >>> - support for legend
> > >>> - smarter way to put labels on axis
> > >>>
> > >>> Anything else?
> > >>>
> > >>> Cheers,
> > >>> Alexandre
> > >>> --
> > >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >>> Alexandre Bergel http://www.bergel.eu
> > >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>> _______________________________________________
> > >>> Moose-dev mailing list
> > >>> [hidden email]
> > >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >> --
> > >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >> Alexandre Bergel http://www.bergel.eu
> > >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Moose-dev mailing list
> > >> [hidden email]
> > >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Vincent Blondeau
In reply to this post by Kevin Lanvin


-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]]
De la part de Kevin Lanvin
Envoyé : lundi 6 janvier 2014 15:30
À : Moose-related development
Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?

Hello,
I'm displaying a graph on the web , and it's working well, but then I want
tu put a second diagram on my page.
But diagrams are displayed in <div id="chart"></div> So i can't use a second
division to display another one.
Could it be possible to use class instead of id ?



Hi Kevin,

I think you can't use the class tag instead of id.
The id tag has to be unique in the web page.
Class tag is not unique and it's used mostly for the css tags.

If you want to display two diagrams in the page, put the tag : <div
id="chart1"></div> as a placeholder for the first and <div
id="chart2"></div> for the second.
You have to set also the controller (GraphET) to display the right chart in
the right tag, by default, it seems to be set with "chart".

I hope that it will help,

Vincent Blondeau




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Kevin Lanvin
It seems that 'chart' isn't even written in Graph-ET Package.
I didn't find anything interesting in extra files too.
I don't understand where this id is used.
I thought it was just for css , or just rendering axis and so on ...

Thank you for helping

----- Mail original -----

> De: "Vincent BLONDEAU" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 16:54:25
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
>
>
> -----Message d'origine-----
> De : [hidden email]
> [mailto:[hidden email]]
> De la part de Kevin Lanvin
> Envoyé : lundi 6 janvier 2014 15:30
> À : Moose-related development
> Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> Hello,
> I'm displaying a graph on the web , and it's working well, but then I
> want
> tu put a second diagram on my page.
> But diagrams are displayed in <div id="chart"></div> So i can't use a
> second
> division to display another one.
> Could it be possible to use class instead of id ?
>
>
>
> Hi Kevin,
>
> I think you can't use the class tag instead of id.
> The id tag has to be unique in the web page.
> Class tag is not unique and it's used mostly for the css tags.
>
> If you want to display two diagrams in the page, put the tag : <div
> id="chart1"></div> as a placeholder for the first and <div
> id="chart2"></div> for the second.
> You have to set also the controller (GraphET) to display the right
> chart in
> the right tag, by default, it seems to be set with "chart".
>
> I hope that it will help,
>
> Vincent Blondeau
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Vincent Blondeau


-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]]
De la part de Kevin Lanvin
Envoyé : lundi 6 janvier 2014 17:11
À : Moose-related development
Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?

It seems that 'chart' isn't even written in Graph-ET Package.
I didn't find anything interesting in extra files too.
I don't understand where this id is used.
I thought it was just for css , or just rendering axis and so on ...


Ok, I think that the id tag used is "roassal-canvas". Look  at the method
named paper in RORaphaelCanvas (package ARoassal-Raphaeljs).
Maybe you have to modify and extend it to add another graph.

Check if you use this tag for your first chart.



Thank you for helping

----- Mail original -----

> De: "Vincent BLONDEAU" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 16:54:25
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
>
>
> -----Message d'origine-----
> De : [hidden email]
> [mailto:[hidden email]]
> De la part de Kevin Lanvin
> Envoyé : lundi 6 janvier 2014 15:30
> À : Moose-related development
> Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> Hello,
> I'm displaying a graph on the web , and it's working well, but then I
> want tu put a second diagram on my page.
> But diagrams are displayed in <div id="chart"></div> So i can't use a
> second division to display another one.
> Could it be possible to use class instead of id ?
>
>
>
> Hi Kevin,
>
> I think you can't use the class tag instead of id.
> The id tag has to be unique in the web page.
> Class tag is not unique and it's used mostly for the css tags.
>
> If you want to display two diagrams in the page, put the tag : <div
> id="chart1"></div> as a placeholder for the first and <div
> id="chart2"></div> for the second.
> You have to set also the controller (GraphET) to display the right
> chart in the right tag, by default, it seems to be set with "chart".
>
> I hope that it will help,
>
> Vincent Blondeau
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Cannot display 2 diagrams in the same webpage

Kevin Lanvin
In reply to this post by Kevin Lanvin
I have a question that could help me to understand: Why is the 'chart' division empty ?
How is this division used ?

I've found a piece of code containing 'chart' in ROHTMLExporter >> addSVGInitialization but it's into javascript code so I don't know if it's the right place to fix it.

----- Mail original -----

> De: "Kevin Lanvin" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 17:10:33
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> It seems that 'chart' isn't even written in Graph-ET Package.
> I didn't find anything interesting in extra files too.
> I don't understand where this id is used.
> I thought it was just for css , or just rendering axis and so on ...
>
> Thank you for helping
>
> ----- Mail original -----
> > De: "Vincent BLONDEAU" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:54:25
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> >
> >
> > -----Message d'origine-----
> > De : [hidden email]
> > [mailto:[hidden email]]
> > De la part de Kevin Lanvin
> > Envoyé : lundi 6 janvier 2014 15:30
> > À : Moose-related development
> > Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for
> > GraphET?
> >
> > Hello,
> > I'm displaying a graph on the web , and it's working well, but then
> > I
> > want
> > tu put a second diagram on my page.
> > But diagrams are displayed in <div id="chart"></div> So i can't use
> > a
> > second
> > division to display another one.
> > Could it be possible to use class instead of id ?
> >
> >
> >
> > Hi Kevin,
> >
> > I think you can't use the class tag instead of id.
> > The id tag has to be unique in the web page.
> > Class tag is not unique and it's used mostly for the css tags.
> >
> > If you want to display two diagrams in the page, put the tag : <div
> > id="chart1"></div> as a placeholder for the first and <div
> > id="chart2"></div> for the second.
> > You have to set also the controller (GraphET) to display the right
> > chart in
> > the right tag, by default, it seems to be set with "chart".
> >
> > I hope that it will help,
> >
> > Vincent Blondeau
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Kevin Lanvin
In reply to this post by Vincent Blondeau
This package isn't even loaded on my image so I don't think that the problem is coming from here.

----- Mail original -----

> De: "Vincent BLONDEAU" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 17:22:22
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
>
>
> -----Message d'origine-----
> De : [hidden email]
> [mailto:[hidden email]]
> De la part de Kevin Lanvin
> Envoyé : lundi 6 janvier 2014 17:11
> À : Moose-related development
> Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> It seems that 'chart' isn't even written in Graph-ET Package.
> I didn't find anything interesting in extra files too.
> I don't understand where this id is used.
> I thought it was just for css , or just rendering axis and so on ...
>
>
> Ok, I think that the id tag used is "roassal-canvas". Look  at the
> method
> named paper in RORaphaelCanvas (package ARoassal-Raphaeljs).
> Maybe you have to modify and extend it to add another graph.
>
> Check if you use this tag for your first chart.
>
>
>
> Thank you for helping
>
> ----- Mail original -----
> > De: "Vincent BLONDEAU" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:54:25
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> >
> >
> > -----Message d'origine-----
> > De : [hidden email]
> > [mailto:[hidden email]]
> > De la part de Kevin Lanvin
> > Envoyé : lundi 6 janvier 2014 15:30
> > À : Moose-related development
> > Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for
> > GraphET?
> >
> > Hello,
> > I'm displaying a graph on the web , and it's working well, but then
> > I
> > want tu put a second diagram on my page.
> > But diagrams are displayed in <div id="chart"></div> So i can't use
> > a
> > second division to display another one.
> > Could it be possible to use class instead of id ?
> >
> >
> >
> > Hi Kevin,
> >
> > I think you can't use the class tag instead of id.
> > The id tag has to be unique in the web page.
> > Class tag is not unique and it's used mostly for the css tags.
> >
> > If you want to display two diagrams in the page, put the tag : <div
> > id="chart1"></div> as a placeholder for the first and <div
> > id="chart2"></div> for the second.
> > You have to set also the controller (GraphET) to display the right
> > chart in the right tag, by default, it seems to be set with
> > "chart".
> >
> > I hope that it will help,
> >
> > Vincent Blondeau
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot display 2 diagrams in the same webpage

Vincent Blondeau
In reply to this post by Kevin Lanvin


-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]]
De la part de Kevin Lanvin
Envoyé : lundi 6 janvier 2014 17:25
À : Moose-related development
Objet : [Moose-dev] Cannot display 2 diagrams in the same webpage

I have a question that could help me to understand: Why is the 'chart'
division empty ?

The div 'chart' is just a placeholder to your graph.

How is this division used ?

As the id is unique, GraphET (with some JQuery functions) can retreive your
div.

I've found a piece of code containing 'chart' in ROHTMLExporter >>
addSVGInitialization but it's into javascript code so I don't know if it's
the right place to fix it.

It's the only reference to 'chart' in the image. Set a breakpoint and try or
modify it by 'chart1' for example.

----- Mail original -----

> De: "Kevin Lanvin" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 17:10:33
> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> It seems that 'chart' isn't even written in Graph-ET Package.
> I didn't find anything interesting in extra files too.
> I don't understand where this id is used.
> I thought it was just for css , or just rendering axis and so on ...
>
> Thank you for helping
>
> ----- Mail original -----
> > De: "Vincent BLONDEAU" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:54:25
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> >
> >
> > -----Message d'origine-----
> > De : [hidden email]
> > [mailto:[hidden email]]
> > De la part de Kevin Lanvin
> > Envoyé : lundi 6 janvier 2014 15:30
> > À : Moose-related development
> > Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> > Hello,
> > I'm displaying a graph on the web , and it's working well, but then
> > I want tu put a second diagram on my page.
> > But diagrams are displayed in <div id="chart"></div> So i can't use
> > a second division to display another one.
> > Could it be possible to use class instead of id ?
> >
> >
> >
> > Hi Kevin,
> >
> > I think you can't use the class tag instead of id.
> > The id tag has to be unique in the web page.
> > Class tag is not unique and it's used mostly for the css tags.
> >
> > If you want to display two diagrams in the page, put the tag : <div
> > id="chart1"></div> as a placeholder for the first and <div
> > id="chart2"></div> for the second.
> > You have to set also the controller (GraphET) to display the right
> > chart in the right tag, by default, it seems to be set with "chart".
> >
> > I hope that it will help,
> >
> > Vincent Blondeau
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Daniel Aviv Notario
In reply to this post by Daniel Aviv Notario
Doru, I'm working on that example, I can replicate a little bit more that you could, but definitly I can't replicate all of the ES diagram, I'm working on it right now. I'll inform you as soon as I get any result.

Cheers!
Daniel

> Date: Mon, 6 Jan 2014 16:42:14 +0100

> From: [hidden email]
> To: [hidden email]
> Subject: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> I'm not able to do it myself. I've never done javascript before and I think the problem is coming from here.
> I'm sorry to ask you so much with graph-ET.
>
>
> ----- Mail original -----
> > De: "Alexandre Bergel" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:06:26
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> > Sure! Feel free to provide a fix for this. Sending .st or .cs files
> > is fine :-)
> >
> > Alexandre
> >
> >
> > On Jan 6, 2014, at 11:29 AM, Kevin Lanvin <[hidden email]>
> > wrote:
> >
> > > Hello,
> > > I'm displaying a graph on the web , and it's working well, but then
> > > I want tu put a second diagram on my page.
> > > But diagrams are displayed in <div id="chart"></div>
> > > So i can't use a second division to display another one.
> > > Could it be possible to use class instead of id ?
> > >
> > > ----- Mail original -----
> > >> De: "Alexandre Bergel" <[hidden email]>
> > >> À: "Moose-related development" <[hidden email]>
> > >> Envoyé: Lundi 6 Janvier 2014 02:16:48
> > >> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for
> > >> GraphET?
> > >>
> > >> :-)
> > >>
> > >> That will be the roadmap for week
> > >>
> > >> Alexandre
> > >>
> > >>
> > >> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]>
> > >> wrote:
> > >>
> > >>> Reposting here, just in case you missed it :)
> > >>>
> > >>> Doru
> > >>>
> > >>> ---------- Forwarded message ----------
> > >>> From: Tudor Girba <[hidden email]>
> > >>> Date: Sat, Jan 4, 2014 at 10:39 PM
> > >>> Subject: Re: [Pharo-dev] Feature for request for GraphET?
> > >>> To: Pharo Development List <[hidden email]>
> > >>>
> > >>>
> > >>> Here is one thing I would want: a correspondent Graph-ET
> > >>> functionality to make something like this EyeSee script work as
> > >>> in
> > >>> the first attached picture.
> > >>>
> > >>> renderer := ESDiagramRenderer new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (ESVerticalBarDiagram new)
> > >>> identifier: [:each | each key ];
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxis;
> > >>> rightYAxis;
> > >>> defaultColor: Color veryVeryLightGray;
> > >>> axisColor: Color veryVeryLightGray;
> > >>> models: grouped;
> > >>> rotatedLabels: true;
> > >>> yourself.
> > >>> diag2 := (ESVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> gapFraction: 2 / 3;
> > >>> defaultColor: (Color red);
> > >>> axisColor: (Color red);
> > >>> models: grouped;
> > >>> yourself.
> > >>> (renderer compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> renderer open
> > >>>
> > >>>
> > >>> <Screenshot 2014-01-04 22.31.57.png>
> > >>>
> > >>>
> > >>> The best I could produce with Graph-ET is this (I commented out
> > >>> the
> > >>> message to which I did not find a correspondent):
> > >>>
> > >>> builder := GETDiagramBuilder new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (GETVerticalBarDiagram new)
> > >>> "identifier: [:each | each key ];"
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxisLine;
> > >>> "rightYAxis;"
> > >>> color: Color veryLightGray;
> > >>> "axisColor: Color veryLightGray;"
> > >>> models: grouped;
> > >>> "rotatedLabels: true;"
> > >>> yourself.
> > >>> diag2 := (GETVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> "gapFraction: 2 / 3;"
> > >>> color: (Color red);
> > >>> "axisColor: (Color red);"
> > >>> models: grouped;
> > >>> yourself.
> > >>> (builder compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> builder open
> > >>>
> > >>> <Screenshot 2014-01-04 22.36.40.png>
> > >>>
> > >>> Cheers,
> > >>> Doru
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
> > >>> <[hidden email]> wrote:
> > >>> Hi!
> > >>>
> > >>> Daniel is looking for usage scenarios with GraphET. It would be
> > >>> great to hear about your need.
> > >>> Currently, we will work on:
> > >>> - PDF Export using Artefact
> > >>> - support for legend
> > >>> - smarter way to put labels on axis
> > >>>
> > >>> Anything else?
> > >>>
> > >>> Cheers,
> > >>> Alexandre
> > >>> --
> > >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >>> Alexandre Bergel http://www.bergel.eu
> > >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>> _______________________________________________
> > >>> Moose-dev mailing list
> > >>> [hidden email]
> > >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >> --
> > >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >> Alexandre Bergel http://www.bergel.eu
> > >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Moose-dev mailing list
> > >> [hidden email]
> > >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Feature for request for GraphET?

Tudor Girba-2
Excellent, Daniel. Please let me know when I can review code.

Doru


On Mon, Jan 6, 2014 at 7:02 PM, Daniel Aviv Notario <[hidden email]> wrote:
Doru, I'm working on that example, I can replicate a little bit more that you could, but definitly I can't replicate all of the ES diagram, I'm working on it right now. I'll inform you as soon as I get any result.

Cheers!
Daniel


> Date: Mon, 6 Jan 2014 16:42:14 +0100
> From: [hidden email]
> To: [hidden email]
> Subject: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
>
> I'm not able to do it myself. I've never done javascript before and I think the problem is coming from here.
> I'm sorry to ask you so much with graph-ET.
>
>
> ----- Mail original -----
> > De: "Alexandre Bergel" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 16:06:26
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> > Sure! Feel free to provide a fix for this. Sending .st or .cs files
> > is fine :-)
> >
> > Alexandre
> >
> >
> > On Jan 6, 2014, at 11:29 AM, Kevin Lanvin <[hidden email]>
> > wrote:
> >
> > > Hello,
> > > I'm displaying a graph on the web , and it's working well, but then
> > > I want tu put a second diagram on my page.
> > > But diagrams are displayed in <div id="chart"></div>
> > > So i can't use a second division to display another one.
> > > Could it be possible to use class instead of id ?
> > >
> > > ----- Mail original -----
> > >> De: "Alexandre Bergel" <[hidden email]>
> > >> À: "Moose-related development" <[hidden email]>
> > >> Envoyé: Lundi 6 Janvier 2014 02:16:48
> > >> Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for
> > >> GraphET?
> > >>
> > >> :-)
> > >>
> > >> That will be the roadmap for week
> > >>
> > >> Alexandre
> > >>
> > >>
> > >> On Jan 5, 2014, at 7:10 PM, Tudor Girba <[hidden email]>
> > >> wrote:
> > >>
> > >>> Reposting here, just in case you missed it :)
> > >>>
> > >>> Doru
> > >>>
> > >>> ---------- Forwarded message ----------
> > >>> From: Tudor Girba <[hidden email]>
> > >>> Date: Sat, Jan 4, 2014 at 10:39 PM
> > >>> Subject: Re: [Pharo-dev] Feature for request for GraphET?
> > >>> To: Pharo Development List <[hidden email]>
> > >>>
> > >>>
> > >>> Here is one thing I would want: a correspondent Graph-ET
> > >>> functionality to make something like this EyeSee script work as
> > >>> in
> > >>> the first attached picture.
> > >>>
> > >>> renderer := ESDiagramRenderer new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (ESVerticalBarDiagram new)
> > >>> identifier: [:each | each key ];
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxis;
> > >>> rightYAxis;
> > >>> defaultColor: Color veryVeryLightGray;
> > >>> axisColor: Color veryVeryLightGray;
> > >>> models: grouped;
> > >>> rotatedLabels: true;
> > >>> yourself.
> > >>> diag2 := (ESVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> gapFraction: 2 / 3;
> > >>> defaultColor: (Color red);
> > >>> axisColor: (Color red);
> > >>> models: grouped;
> > >>> yourself.
> > >>> (renderer compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> renderer open
> > >>>
> > >>>
> > >>> <Screenshot <a href="tel:2014-01-04%2022" value="+12014010422" target="_blank">2014-01-04 22.31.57.png>
> > >>>
> > >>>
> > >>> The best I could produce with Graph-ET is this (I commented out
> > >>> the
> > >>> message to which I did not find a correspondent):
> > >>>
> > >>> builder := GETDiagramBuilder new.
> > >>> grouped := { #item1->{10 . 12 . 11 . 14 } . #item2-> { 1 . 1 . 20
> > >>> }
> > >>> . #item3->{ 1 . 1 . 1 . 1 . 1} }.
> > >>> diag := (GETVerticalBarDiagram new)
> > >>> "identifier: [:each | each key ];"
> > >>> y: [:each | each value size];
> > >>> yAxisLabel: 'Count';
> > >>> valueAxisLine;
> > >>> "rightYAxis;"
> > >>> color: Color veryLightGray;
> > >>> "axisColor: Color veryLightGray;"
> > >>> models: grouped;
> > >>> "rotatedLabels: true;"
> > >>> yourself.
> > >>> diag2 := (GETVerticalBarDiagram new)
> > >>> y: [:each | each value sum];
> > >>> regularAxis;
> > >>> yAxisLabel: 'Sum';
> > >>> "gapFraction: 2 / 3;"
> > >>> color: (Color red);
> > >>> "axisColor: (Color red);"
> > >>> models: grouped;
> > >>> yourself.
> > >>> (builder compositeDiagram)
> > >>> add: diag;
> > >>> add: diag2.
> > >>> builder open
> > >>>
> > >>> <Screenshot <a href="tel:2014-01-04%2022" value="+12014010422" target="_blank">2014-01-04 22.36.40.png>
> > >>>
> > >>> Cheers,
> > >>> Doru
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Thu, Jan 2, 2014 at 7:24 PM, Alexandre Bergel
> > >>> <[hidden email]> wrote:
> > >>> Hi!
> > >>>
> > >>> Daniel is looking for usage scenarios with GraphET. It would be
> > >>> great to hear about your need.
> > >>> Currently, we will work on:
> > >>> - PDF Export using Artefact
> > >>> - support for legend
> > >>> - smarter way to put labels on axis
> > >>>
> > >>> Anything else?
> > >>>
> > >>> Cheers,
> > >>> Alexandre
> > >>> --
> > >>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >>> Alexandre Bergel http://www.bergel.eu
> > >>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> www.tudorgirba.com
> > >>>
> > >>> "Every thing has its own flow"
> > >>> _______________________________________________
> > >>> Moose-dev mailing list
> > >>> [hidden email]
> > >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >> --
> > >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > >> Alexandre Bergel http://www.bergel.eu
> > >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Moose-dev mailing list
> > >> [hidden email]
> > >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >>
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot display 2 diagrams in the same webpage

Kevin Lanvin
In reply to this post by Vincent Blondeau
Hello

In ROHTMLExporter>>addSVGInitialization , i've changed chart by chart1 and it's working , so the id is used at this place, you are right.
Do you think it is possible to dynamically choose the id that you want to work with ?

Thank you

----- Mail original -----

> De: "Vincent BLONDEAU" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Lundi 6 Janvier 2014 17:42:06
> Objet: [Moose-dev] Re: Cannot display 2 diagrams in the same webpage
>
>
>
> -----Message d'origine-----
> De : [hidden email]
> [mailto:[hidden email]]
> De la part de Kevin Lanvin
> Envoyé : lundi 6 janvier 2014 17:25
> À : Moose-related development
> Objet : [Moose-dev] Cannot display 2 diagrams in the same webpage
>
> I have a question that could help me to understand: Why is the
> 'chart'
> division empty ?
>
> The div 'chart' is just a placeholder to your graph.
>
> How is this division used ?
>
> As the id is unique, GraphET (with some JQuery functions) can
> retreive your
> div.
>
> I've found a piece of code containing 'chart' in ROHTMLExporter >>
> addSVGInitialization but it's into javascript code so I don't know if
> it's
> the right place to fix it.
>
> It's the only reference to 'chart' in the image. Set a breakpoint and
> try or
> modify it by 'chart1' for example.
>
> ----- Mail original -----
> > De: "Kevin Lanvin" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Lundi 6 Janvier 2014 17:10:33
> > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for GraphET?
> >
> > It seems that 'chart' isn't even written in Graph-ET Package.
> > I didn't find anything interesting in extra files too.
> > I don't understand where this id is used.
> > I thought it was just for css , or just rendering axis and so on
> > ...
> >
> > Thank you for helping
> >
> > ----- Mail original -----
> > > De: "Vincent BLONDEAU" <[hidden email]>
> > > À: "Moose-related development" <[hidden email]>
> > > Envoyé: Lundi 6 Janvier 2014 16:54:25
> > > Objet: [Moose-dev] Re: [Pharo-dev] Feature for request for
> > > GraphET?
> > >
> > >
> > >
> > > -----Message d'origine-----
> > > De : [hidden email]
> > > [mailto:[hidden email]]
> > > De la part de Kevin Lanvin
> > > Envoyé : lundi 6 janvier 2014 15:30
> > > À : Moose-related development
> > > Objet : [Moose-dev] Re: [Pharo-dev] Feature for request for
> > > GraphET?
> > >
> > > Hello,
> > > I'm displaying a graph on the web , and it's working well, but
> > > then
> > > I want tu put a second diagram on my page.
> > > But diagrams are displayed in <div id="chart"></div> So i can't
> > > use
> > > a second division to display another one.
> > > Could it be possible to use class instead of id ?
> > >
> > >
> > >
> > > Hi Kevin,
> > >
> > > I think you can't use the class tag instead of id.
> > > The id tag has to be unique in the web page.
> > > Class tag is not unique and it's used mostly for the css tags.
> > >
> > > If you want to display two diagrams in the page, put the tag :
> > > <div
> > > id="chart1"></div> as a placeholder for the first and <div
> > > id="chart2"></div> for the second.
> > > You have to set also the controller (GraphET) to display the
> > > right
> > > chart in the right tag, by default, it seems to be set with
> > > "chart".
> > >
> > > I hope that it will help,
> > >
> > > Vincent Blondeau
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Moose-dev mailing list
> > > [hidden email]
> > > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> > >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
12