Hi Pier,

You can set the color of each block with [1] and on search text change, you
should
call `setOption` with the calculated color to update the chart.

Thanks

*Ovilia*

[1] https://echarts.apache.org/zh/option.html#series-treemap.data.itemStyle


On Fri, Dec 10, 2021 at 12:28 AM <pier.luigi.ro...@ird.fr> wrote:

> Dear all,
> I use protovis library and echarts library to produce treemaps.
> In protovis we have a search function to select nodes by a search.
>
> I would like to do the same for treemps in echarts.
>
> Could you help me ?
>
> You can see and use the search here (go under the treemap) :
> [ https://beep.ird.fr/acces/SOURIS-19.htm |
> https://beep.ird.fr/acces/SOURIS-19.htm ]
>
> Best regards
>
> Pier Luigi ROSSI
> IRD
>
> The code is in the source of htm file ( [
> https://beep.ird.fr/acces/SOURIS-19.htm |
> https://beep.ird.fr/acces/SOURIS-19.htm ] )
>
>
>
>
>
>
>
>

Reply via email to