Все отлично работает Мне нужно заморозить облако слов при клике
wordCloud(data) {
const chart = am4core.create(this.div.nativeElement, am4plugins_wordCloud.WordCloud);
const series = chart.series.push(new am4plugins_wordCloud.WordCloudSeries());
series.maxCount = 100;
series.minWordLength = 2;
series.excludeWords = this.ignore;
// tslint:disable-next-line:max-line-length
// series.maxFontSize = am4core.percent(25);
// series.minFontSize = am4core.percent(5);
series.heatRules.push({
'target': series.labels.template,
'property': 'fill',
'min': am4core.color('#ffffff'),
'max': am4core.color('#ffffff'),
});
series.labels.template.tooltipText = '{word}: {value}';
series.labels.template.tooltipText.fontcolor('green');
chart.responsive.enabled = false; setInterval(function () {
this.videostatus = localStorage.getItem('videostatus');
if (this.videostatus === 'play') {
series.text = data;
series.dataItems.getIndex(Math.round(Math.random() * (series.dataItems.length - 1))).setValue('value', Math.round(Math.random() * 10));
}
if (this.videostatus === 'pause') {
}
}, 1000 );
}
------------------ Мне нужно заморозить облако слов на кнопке ----------------------------------------------------------