# Are amCharts events enabled?

**URL:** <https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [September 25, 2025, 6:19pm UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985 "2025-09-25T18:19:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TT-ignit](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TT-ignit](https://forum.inductiveautomation.com/u/TT-ignit)\
**Post date:** [September 25, 2025, 6:19pm UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/1 "2025-09-25T18:19:54Z")

</div>

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](https://www.amcharts.com/docs/v4/tutorials/wrapping-and-truncating-axis-labels/#Auto_fitting_labels) 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.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/f/3f09735b2eaa60b45394bef31de5b829891843ba.png)

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

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 27, 2025, 12:26am UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/2 "2025-09-27T00:26:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [September 27, 2025, 12:44am UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/3 "2025-09-27T00:44:01Z")

</div>

> [@nminchin](#):
>
> I _think_ you need to use an arrow function instead.

Nah, that’s only for my modules.

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

---

<div class="post-metadata">

**Author:** ![TT-ignit](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TT-ignit](https://forum.inductiveautomation.com/u/TT-ignit)\
**Post date:** [September 27, 2025, 4:10am UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/4 "2025-09-27T04:10:53Z")

</div>

> [@bmusson](#):
>
> The first party charting components do not support JavaScript-as-props.

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

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [September 27, 2025, 4:53am UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/5 "2025-09-27T04:53:34Z")

</div>

> [@TT-ignit](#):
>
> does this amCharts module count as first party?

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

> **[Perspective - XY Chart | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-xy-chart)**
>
> The XY Chart displays data trends.

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

> <https://github.com/mussonindustrial/embr/blob/8.1/main/modules/charts/README.md>

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 29, 2025, 9:37am UTC](https://forum.inductiveautomation.com/t/are-amcharts-events-enabled/110985/6 "2025-09-29T09:37:31Z")

</div>

> [@bmusson](#):
>
> you mean the XY Chart

(which uses amCharts under the hood - just thought I'd clarify)
