amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
353 stars 95 forks source link

How to invalidate labels on line and column serieses in amcharts5 #1647

Closed Ashishvkale closed 3 months ago

Ashishvkale commented 3 months ago

Below is the amchart4 code where line and columnseries labels were invalidated and updated to new data

this.lineSeries?.invalidateLabels()
for (const series of this.columnSeriesArray) series.invalidateLabels()

How can I achieve the same functionality in amchart5 ??

I wanted to truncate my label on my custom variable changes

label.adapters.add("oversizedBehavior", () => {
                if (this.truncateTitles) return "truncate"
                return "none"
            })