You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by pi...@ird.fr on 2021/10/14 09:50:33 UTC

Color edge in graph (force or circular) with modularity in echarts-graph-modularity 2.0

Version : 5.2.1 


Hi to all, 

I use echarts5 and echarts-graph-modularity 2.0 . 
I can't have in graphs edge color using this steps 

lineStyle: { 
color: 'source', 

or color : 'target' 

If you look the exemple in echarts-graph-modularity 2.0 you can see thet the "colors" are wrongs. 
Compare the same exemple file with the precedent echarts-graph-modularity : in that case the color of the edge is the color of node source (or target). 
What is expected? 


I espect to have colors for edges using source or target node color What is actually happening? 


Actually the edge color is a "general" color 












Best regards 

Pier Luigi ROSSI, IRD France 



echarts-graph-modularity 2..1.0 and categories export

Posted by pi...@ird.fr.
Dear Yi, 

First of all, I apologize for sending my thanks so late.
The version of echarts-graph-modularity 2.1.0 is perfect.
I attach an example of our use: analysis of the co-authors of scientific articles. 
https://beep.ird.fr/acces/SOURIS-copub.htm QUESTION : Would it be possible to export to echarts the clusters informations (graph.categories) generated by echarts-graph-modularity to be able to select / deselect each cluster (categorie) as in:
https://echarts.apache.org/examples/en/editor.html?c=graph-circular-layout 
with this kind of function : 
legend: [ 
{ 
data: graph.categories.map(function (a) { 
return a.name; 
}) 
} 
], 

Best regards 

Pier Luigi ROSSI 
IRD (Institut de recherche pour le développement) 
France 



De: "Yi Shen" <sh...@gmail.com> 
À: "dev" <de...@echarts.apache.org>, "pier luigi rossi" <pi...@ird.fr> 
Envoyé: Vendredi 15 Octobre 2021 07:25:28 
Objet: Re: Color edge in graph (force or circular) with modularity in echarts-graph-modularity 2.0 

Just published echarts-graph-modularity@2.1.0 to fix it. 

On Fri, Oct 15, 2021 at 12:46 PM Yi Shen < [ mailto:shenyi.914@gmail.com | shenyi.914@gmail.com ] > wrote: 



Hi, 

Thanks for the feedback. It's because edge color is calculated before the execution of echarts-graph-modularity. I will fix it in echarts-graph-modularity 

Regards. 

On Thu, Oct 14, 2021 at 7:52 PM < [ mailto:pier.luigi.rossi@ird.fr | pier.luigi.rossi@ird.fr ] > wrote: 

BQ_BEGIN
Version : 5.2.1 


Hi to all, 

I use echarts5 and echarts-graph-modularity 2.0 . 
I can't have in graphs edge color using this steps 

lineStyle: { 
color: 'source', 

or color : 'target' 

If you look the exemple in echarts-graph-modularity 2.0 you can see thet the "colors" are wrongs. 
Compare the same exemple file with the precedent echarts-graph-modularity : in that case the color of the edge is the color of node source (or target). 
What is expected? 


I espect to have colors for edges using source or target node color What is actually happening? 


Actually the edge color is a "general" color 












Best regards 

Pier Luigi ROSSI, IRD France 







-- 
Yi Shen 
Apache ECharts PMC 

BQ_END



-- 
Yi Shen 
Apache ECharts PMC 


Re: Color edge in graph (force or circular) with modularity in echarts-graph-modularity 2.0

Posted by Yi Shen <sh...@gmail.com>.
Just published echarts-graph-modularity@2.1.0 to fix it.

On Fri, Oct 15, 2021 at 12:46 PM Yi Shen <sh...@gmail.com> wrote:

> Hi,
>
> Thanks for the feedback. It's because edge color is calculated before the
> execution of echarts-graph-modularity. I will fix it in
> echarts-graph-modularity
>
> Regards.
>
> On Thu, Oct 14, 2021 at 7:52 PM <pi...@ird.fr> wrote:
>
>> Version : 5.2.1
>>
>>
>> Hi to all,
>>
>> I use echarts5 and echarts-graph-modularity 2.0 .
>> I can't have in graphs edge color using this steps
>>
>> lineStyle: {
>> color: 'source',
>>
>> or color : 'target'
>>
>> If you look the exemple in echarts-graph-modularity 2.0 you can see thet
>> the "colors" are wrongs.
>> Compare the same exemple file with the precedent echarts-graph-modularity
>> : in that case the color of the edge is the color of node source (or
>> target).
>> What is expected?
>>
>>
>> I espect to have colors for edges using source or target node color What
>> is actually happening?
>>
>>
>> Actually the edge color is a "general" color
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Best regards
>>
>> Pier Luigi ROSSI, IRD France
>>
>>
>>
>
> --
> Yi Shen
> Apache ECharts PMC
>


-- 
Yi Shen
Apache ECharts PMC

Re: Color edge in graph (force or circular) with modularity in echarts-graph-modularity 2.0

Posted by Yi Shen <sh...@gmail.com>.
Hi,

Thanks for the feedback. It's because edge color is calculated before the
execution of echarts-graph-modularity. I will fix it in
echarts-graph-modularity

Regards.

On Thu, Oct 14, 2021 at 7:52 PM <pi...@ird.fr> wrote:

> Version : 5.2.1
>
>
> Hi to all,
>
> I use echarts5 and echarts-graph-modularity 2.0 .
> I can't have in graphs edge color using this steps
>
> lineStyle: {
> color: 'source',
>
> or color : 'target'
>
> If you look the exemple in echarts-graph-modularity 2.0 you can see thet
> the "colors" are wrongs.
> Compare the same exemple file with the precedent echarts-graph-modularity
> : in that case the color of the edge is the color of node source (or
> target).
> What is expected?
>
>
> I espect to have colors for edges using source or target node color What
> is actually happening?
>
>
> Actually the edge color is a "general" color
>
>
>
>
>
>
>
>
>
>
>
>
> Best regards
>
> Pier Luigi ROSSI, IRD France
>
>
>

-- 
Yi Shen
Apache ECharts PMC