You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Alexey Lesovsky <le...@gmail.com> on 2021/04/23 15:49:51 UTC
Graph series: adjacent link and node don't scale on ECharts 5
Hi,
I upgraded to ECharts 5 and found some changes in graph series, but I don't
understand, is it a bug or it works as intended.
Property "focusNodeAdjacency" has been replaced to "emphasis.focus". And
with this change, the emphasis of adjacent links and nodes started to work
differently. In the old version, the item under pointer and adjacent links
and nodes are scaled together. Now only the item under the pointer is
scaled, adjacent links and nodes are not scaled and have the same style
like they are not emphasised.
Is it work like intended?
--
Regards, Alexey
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Alexey Lesovsky <le...@gmail.com>.
Thanks a lot, hope this will be easy to implement.
On Sun, Apr 25, 2021 at 12:16 PM Yi Shen <sh...@gmail.com> wrote:
> I created an issue to track this feature.
> https://github.com/apache/echarts/issues/14788
>
> On Sun, Apr 25, 2021 at 2:31 PM Yi Shen <sh...@gmail.com> wrote:
>
>> Thanks for providing the use case. I think it will be useful in cases
>> like this
>>
>> Regards
>>
>> On Sun, Apr 25, 2021 at 2:27 PM Alexey Lesovsky <le...@gmail.com>
>> wrote:
>>
>>> If you consider adding such option in future I will very grateful to
>>> ECharts team.
>>>
>>> My usecase can be found here - https://pgstats.dev
>>>
>>> Labels and blocks are linked using invisible links. With ECharts 4 when
>>> focusing on diagram item, all linked (adjacent) items also focused too
>>> and links become visible. After upgrade to ECharts 5 I've lost such
>>> behavior, but fortunately it is not critical. So if this option will
>>> appear again it will be good; if not - it is also ok, and not an issue.
>>>
>>> Regards, Alexey
>>>
>>>
>>> On 2021/04/25 03:26:14, Yi Shen <s....@gmail.com> wrote:
>>> > Hi Alexey>
>>> >
>>> > New API won't emphasize the adjacent links and nodes by design. We
>>> will>
>>> > consider adding an option to enable it if necessary.>
>>> >
>>> > Regards>
>>> >
>>> > On Sat, Apr 24, 2021 at 11:59 PM Alexey Lesovsky <le...@gmail.com>
>>> wrote:>
>>> >
>>> > > Difference is easy to see when comparing "Les Miserables" charts v4>
>>> > > <https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs
>>> v5>
>>> > > <https://echarts.apache.org/examples/en/editor.html?c=graph> in>
>>> > > Examples. On v4, adjacent links and nodes are also emphisized on
>>> focus,>
>>> > > on v5 links and nodes stay the same.>
>>> > >>
>>> > > On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:>
>>> > > > Hi,>>
>>> > > >>
>>> > > > I upgraded to ECharts 5 and found some changes in graph series,
>>> but I>
>>> > > don't>>
>>> > > > understand, is it a bug or it works as intended.>>
>>> > > > Property "focusNodeAdjacency" has been replaced to
>>> "emphasis.focus".>
>>> > > And>>
>>> > > > with this change, the emphasis of adjacent links and nodes
>>> started to>
>>> > > work>>
>>> > > > differently. In the old version, the item under pointer and
>>> adjacent>
>>> > > links>>
>>> > > > and nodes are scaled together. Now only the item under the
>>> pointer is>>
>>> > > > scaled, adjacent links and nodes are not scaled and have the same
>>> style>>
>>> > > > like they are not emphasised.>>
>>> > > >>
>>> > > > Is it work like intended?>>
>>> > > >>
>>> > > > -- >>
>>> > > > Regards, Alexey>>
>>> > > >>
>>> > >>
>>> >
>>> >
>>> > -- >
>>> > Yi Shen>
>>> > Apache ECharts PMC>
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
>>> For additional commands, e-mail: dev-help@echarts.apache.org
>>>
>>>
>>
>> --
>> Yi Shen
>> Apache ECharts PMC
>>
>
>
> --
> Yi Shen
> Apache ECharts PMC
>
--
С уважением Алексей В. Лесовский
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Yi Shen <sh...@gmail.com>.
I created an issue to track this feature.
https://github.com/apache/echarts/issues/14788
On Sun, Apr 25, 2021 at 2:31 PM Yi Shen <sh...@gmail.com> wrote:
> Thanks for providing the use case. I think it will be useful in cases like
> this
>
> Regards
>
> On Sun, Apr 25, 2021 at 2:27 PM Alexey Lesovsky <le...@gmail.com>
> wrote:
>
>> If you consider adding such option in future I will very grateful to
>> ECharts team.
>>
>> My usecase can be found here - https://pgstats.dev
>>
>> Labels and blocks are linked using invisible links. With ECharts 4 when
>> focusing on diagram item, all linked (adjacent) items also focused too
>> and links become visible. After upgrade to ECharts 5 I've lost such
>> behavior, but fortunately it is not critical. So if this option will
>> appear again it will be good; if not - it is also ok, and not an issue.
>>
>> Regards, Alexey
>>
>>
>> On 2021/04/25 03:26:14, Yi Shen <s....@gmail.com> wrote:
>> > Hi Alexey>
>> >
>> > New API won't emphasize the adjacent links and nodes by design. We
>> will>
>> > consider adding an option to enable it if necessary.>
>> >
>> > Regards>
>> >
>> > On Sat, Apr 24, 2021 at 11:59 PM Alexey Lesovsky <le...@gmail.com>
>> wrote:>
>> >
>> > > Difference is easy to see when comparing "Les Miserables" charts v4>
>> > > <https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs
>> v5>
>> > > <https://echarts.apache.org/examples/en/editor.html?c=graph> in>
>> > > Examples. On v4, adjacent links and nodes are also emphisized on
>> focus,>
>> > > on v5 links and nodes stay the same.>
>> > >>
>> > > On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:>
>> > > > Hi,>>
>> > > >>
>> > > > I upgraded to ECharts 5 and found some changes in graph series,
>> but I>
>> > > don't>>
>> > > > understand, is it a bug or it works as intended.>>
>> > > > Property "focusNodeAdjacency" has been replaced to
>> "emphasis.focus".>
>> > > And>>
>> > > > with this change, the emphasis of adjacent links and nodes
>> started to>
>> > > work>>
>> > > > differently. In the old version, the item under pointer and
>> adjacent>
>> > > links>>
>> > > > and nodes are scaled together. Now only the item under the
>> pointer is>>
>> > > > scaled, adjacent links and nodes are not scaled and have the same
>> style>>
>> > > > like they are not emphasised.>>
>> > > >>
>> > > > Is it work like intended?>>
>> > > >>
>> > > > -- >>
>> > > > Regards, Alexey>>
>> > > >>
>> > >>
>> >
>> >
>> > -- >
>> > Yi Shen>
>> > Apache ECharts PMC>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
>> For additional commands, e-mail: dev-help@echarts.apache.org
>>
>>
>
> --
> Yi Shen
> Apache ECharts PMC
>
--
Yi Shen
Apache ECharts PMC
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Yi Shen <sh...@gmail.com>.
Thanks for providing the use case. I think it will be useful in cases like
this
Regards
On Sun, Apr 25, 2021 at 2:27 PM Alexey Lesovsky <le...@gmail.com> wrote:
> If you consider adding such option in future I will very grateful to
> ECharts team.
>
> My usecase can be found here - https://pgstats.dev
>
> Labels and blocks are linked using invisible links. With ECharts 4 when
> focusing on diagram item, all linked (adjacent) items also focused too
> and links become visible. After upgrade to ECharts 5 I've lost such
> behavior, but fortunately it is not critical. So if this option will
> appear again it will be good; if not - it is also ok, and not an issue.
>
> Regards, Alexey
>
>
> On 2021/04/25 03:26:14, Yi Shen <s....@gmail.com> wrote:
> > Hi Alexey>
> >
> > New API won't emphasize the adjacent links and nodes by design. We will>
> > consider adding an option to enable it if necessary.>
> >
> > Regards>
> >
> > On Sat, Apr 24, 2021 at 11:59 PM Alexey Lesovsky <le...@gmail.com>
> wrote:>
> >
> > > Difference is easy to see when comparing "Les Miserables" charts v4>
> > > <https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs
> v5>
> > > <https://echarts.apache.org/examples/en/editor.html?c=graph> in>
> > > Examples. On v4, adjacent links and nodes are also emphisized on
> focus,>
> > > on v5 links and nodes stay the same.>
> > >>
> > > On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:>
> > > > Hi,>>
> > > >>
> > > > I upgraded to ECharts 5 and found some changes in graph series,
> but I>
> > > don't>>
> > > > understand, is it a bug or it works as intended.>>
> > > > Property "focusNodeAdjacency" has been replaced to
> "emphasis.focus".>
> > > And>>
> > > > with this change, the emphasis of adjacent links and nodes
> started to>
> > > work>>
> > > > differently. In the old version, the item under pointer and
> adjacent>
> > > links>>
> > > > and nodes are scaled together. Now only the item under the
> pointer is>>
> > > > scaled, adjacent links and nodes are not scaled and have the same
> style>>
> > > > like they are not emphasised.>>
> > > >>
> > > > Is it work like intended?>>
> > > >>
> > > > -- >>
> > > > Regards, Alexey>>
> > > >>
> > >>
> >
> >
> > -- >
> > Yi Shen>
> > Apache ECharts PMC>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
> For additional commands, e-mail: dev-help@echarts.apache.org
>
>
--
Yi Shen
Apache ECharts PMC
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Alexey Lesovsky <le...@gmail.com>.
If you consider adding such option in future I will very grateful to
ECharts team.
My usecase can be found here - https://pgstats.dev
Labels and blocks are linked using invisible links. With ECharts 4 when
focusing on diagram item, all linked (adjacent) items also focused too
and links become visible. After upgrade to ECharts 5 I've lost such
behavior, but fortunately it is not critical. So if this option will
appear again it will be good; if not - it is also ok, and not an issue.
Regards, Alexey
On 2021/04/25 03:26:14, Yi Shen <s....@gmail.com> wrote:
> Hi Alexey>
>
> New API won't emphasize the adjacent links and nodes by design. We will>
> consider adding an option to enable it if necessary.>
>
> Regards>
>
> On Sat, Apr 24, 2021 at 11:59 PM Alexey Lesovsky <le...@gmail.com>
wrote:>
>
> > Difference is easy to see when comparing "Les Miserables" charts v4>
> > <https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs v5>
> > <https://echarts.apache.org/examples/en/editor.html?c=graph> in>
> > Examples. On v4, adjacent links and nodes are also emphisized on
focus,>
> > on v5 links and nodes stay the same.>
> >>
> > On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:>
> > > Hi,>>
> > >>
> > > I upgraded to ECharts 5 and found some changes in graph series,
but I>
> > don't>>
> > > understand, is it a bug or it works as intended.>>
> > > Property "focusNodeAdjacency" has been replaced to
"emphasis.focus".>
> > And>>
> > > with this change, the emphasis of adjacent links and nodes
started to>
> > work>>
> > > differently. In the old version, the item under pointer and
adjacent>
> > links>>
> > > and nodes are scaled together. Now only the item under the
pointer is>>
> > > scaled, adjacent links and nodes are not scaled and have the same
style>>
> > > like they are not emphasised.>>
> > >>
> > > Is it work like intended?>>
> > >>
> > > -- >>
> > > Regards, Alexey>>
> > >>
> >>
>
>
> -- >
> Yi Shen>
> Apache ECharts PMC>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Yi Shen <sh...@gmail.com>.
Hi Alexey
New API won't emphasize the adjacent links and nodes by design. We will
consider adding an option to enable it if necessary.
Regards
On Sat, Apr 24, 2021 at 11:59 PM Alexey Lesovsky <le...@gmail.com> wrote:
> Difference is easy to see when comparing "Les Miserables" charts v4
> <https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs v5
> <https://echarts.apache.org/examples/en/editor.html?c=graph> in
> Examples. On v4, adjacent links and nodes are also emphisized on focus,
> on v5 links and nodes stay the same.
>
> On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:
> > Hi,>
> >
> > I upgraded to ECharts 5 and found some changes in graph series, but I
> don't>
> > understand, is it a bug or it works as intended.>
> > Property "focusNodeAdjacency" has been replaced to "emphasis.focus".
> And>
> > with this change, the emphasis of adjacent links and nodes started to
> work>
> > differently. In the old version, the item under pointer and adjacent
> links>
> > and nodes are scaled together. Now only the item under the pointer is>
> > scaled, adjacent links and nodes are not scaled and have the same style>
> > like they are not emphasised.>
> >
> > Is it work like intended?>
> >
> > -- >
> > Regards, Alexey>
> >
>
--
Yi Shen
Apache ECharts PMC
Re: Graph series: adjacent link and node don't scale on ECharts 5
Posted by Alexey Lesovsky <le...@gmail.com>.
Difference is easy to see when comparing "Les Miserables" charts v4
<https://echarts.apache.org/v4/examples/en/editor.html?c=graph> vs v5
<https://echarts.apache.org/examples/en/editor.html?c=graph> in
Examples. On v4, adjacent links and nodes are also emphisized on focus,
on v5 links and nodes stay the same.
On 2021/04/23 15:49:51, Alexey Lesovsky <l....@gmail.com> wrote:
> Hi,>
>
> I upgraded to ECharts 5 and found some changes in graph series, but I
don't>
> understand, is it a bug or it works as intended.>
> Property "focusNodeAdjacency" has been replaced to "emphasis.focus".
And>
> with this change, the emphasis of adjacent links and nodes started to
work>
> differently. In the old version, the item under pointer and adjacent
links>
> and nodes are scaled together. Now only the item under the pointer is>
> scaled, adjacent links and nodes are not scaled and have the same style>
> like they are not emphasised.>
>
> Is it work like intended?>
>
> -- >
> Regards, Alexey>
>