Are amCharts events enabled?

Hello all.

I’m working on an XY chart which I’ve come to learn is actually a 3rd-party component provided by amCharts and offers more properties and configurations than Ignition exposes by default. I want to make labels auto-resizing based on the content of the charts as the user can control how many categories are in my bar charts dynamically.

This page offers a means of doing so using the JSON configuration of the chart, but I couldn’t get it working using the same strategy for other properties I’ve modified. I tried with both the sizechanged event and a few others that I could trigger manually (such as rightclick) and never got anything to happen.

I was wondering if anyone else has had success configuring such things, or if there is perhaps another way.

I think you need to use an arrow function instead. But my js knowledge is 0.1% and I could be entirely wrong!

Nah, that’s only for my modules.

The first party charting components do not support JavaScript-as-props.

2 Likes

Just for my understanding (I’m new to this ecosystem), does this amCharts module count as first party?

If you mean the XY Chart, then yes, it’s the first party component.

Embr Charts (our third party module) supplies Chart.js and ApexCharts components that both support JavaScript interactions.