Hi,

I have a question about changing options in the sunburst chart type.

This example
<https://echarts.apache.org/examples/en/editor.html?c=sunburst-visualMap>
is used as a basis for demonstrating the issue.

It is possible to click into the sunburst chart and then the chart is
updated and repainted with the "sub-category".

My idea is, to update the chart title, if clicked on the "sub-series"
with this method.

myChart.on('click', function(params) {
    myChart.setOption({title: {text: params.name}});
});

This is working so far and the title is printed in the chart. The problem
is now,
that the chart doesn't "zoom" into the sub-series anymore.

How can I update the options of the chart and get back the "zooming"
into the sub-series after clicking?

Best,
Ronny

Reply via email to