You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Laurent Bois <lr...@gmail.com> on 2020/02/25 09:18:56 UTC

Question about sankey graph colors

Hi 

I have data coming from a graph database, and I display them with charts sankey diagram

I am trying to setup colors in the options, and I’d like to know if it’s possible to have one color per Node label

Thanks

Regards

Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org


Re: Question about sankey graph colors

Posted by Ovilia <ov...@gmail.com>.
You are welcome. :)
Please CC dev@echarts.apache.org if you have further questions. This makes
others help and get helped.

Thanks

Wenli


On Wed, Feb 26, 2020 at 3:30 PM Laurent Bois <lr...@gmail.com> wrote:

> Thanks a lot
>
> Regards
>
> Laurent Bois
> Tel: +33 6 61 64 30 75
> skype: laurentbois
>
>
> Le 26 févr. 2020 à 08:27, Ovilia <ov...@gmail.com> a écrit :
>
> 
> Hi,
>
> Series color is set with option.color [1].
> If you wish to set each node's color, please refer to node color [2] and
> label color [3] options.
>
> [1] https://echarts.apache.org/en/option.html#color
> [2]
> https://echarts.apache.org/en/option.html#series-sankey.data.itemStyle.color
> [3]
> https://echarts.apache.org/en/option.html#series-sankey.data.label.color
>
> Thanks
>
> Wenli
>
>
> On Tue, Feb 25, 2020 at 7:59 PM Laurent Bois <lr...@gmail.com> wrote:
>
>> Hi
>>
>> I have data coming from a graph database, and I display them with charts
>> sankey diagram
>>
>> I am trying to setup colors in the options, and I’d like to know if it’s
>> possible to have one color per Node label
>>
>> Thanks
>>
>> Regards
>>
>> Laurent
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
>> For additional commands, e-mail: dev-help@echarts.apache.org
>>
>>

Re: Question about sankey graph colors

Posted by Ovilia <ov...@gmail.com>.
Hi,

Series color is set with option.color [1].
If you wish to set each node's color, please refer to node color [2] and
label color [3] options.

[1] https://echarts.apache.org/en/option.html#color
[2]
https://echarts.apache.org/en/option.html#series-sankey.data.itemStyle.color
[3] https://echarts.apache.org/en/option.html#series-sankey.data.label.color

Thanks

Wenli


On Tue, Feb 25, 2020 at 7:59 PM Laurent Bois <lr...@gmail.com> wrote:

> Hi
>
> I have data coming from a graph database, and I display them with charts
> sankey diagram
>
> I am trying to setup colors in the options, and I’d like to know if it’s
> possible to have one color per Node label
>
> Thanks
>
> Regards
>
> Laurent
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
> For additional commands, e-mail: dev-help@echarts.apache.org
>
>