# How can I use the script to manipulate the legends in the apexcharts in ignition perspective

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-use-the-script-to-manipulate-the-legends-in-the-apexcharts-in-ignition-perspective/95353>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [August 30, 2024, 4:20am UTC](https://forum.inductiveautomation.com/t/how-can-i-use-the-script-to-manipulate-the-legends-in-the-apexcharts-in-ignition-perspective/95353 "2024-08-30T04:20:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 30, 2024, 4:50am UTC](https://forum.inductiveautomation.com/t/how-can-i-use-the-script-to-manipulate-the-legends-in-the-apexcharts-in-ignition-perspective/95353/2 "2024-08-30T04:50:43Z")

</div>

I don’t know of a way to filter legend entries with ApexCharts.

However, my Chart.js component does have this ability through its `options.plugins.legend.labels.filter` scriptable property.

> [@Musson Industrial’s Embr-Charts Module](https://forum.inductiveautomation.com/t/musson-industrial-s-embr-charts-module/91618):
>
> Embr-Charts Musson Industrial is excited to announce the release of embr-charts, an Ignition module that adds a collection of enhanced Perspective charting components. Chart.js Component This initial release contains a [Chart.js](https://www.chartjs.org/) component. [https://github.com/mussonindustrial/embr/raw/main/modules/embr-charts/docs/examples/chart-js.png](https://github.com/mussonindustrial/embr/raw/main/modules/embr-charts/docs/examples/chart-js.png) Chart.js renders chart elements on an HTML5 canvas unlike other D3.js-based charting libraries that render as SVG. Canvas rendering makes Chart.js very performa…

> **[Legend | Chart.js](https://www.chartjs.org/docs/latest/configuration/legend.html)**
>
> Open source HTML5 Charts for your website

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-can-i-use-the-script-to-manipulate-the-legends-in-the-apexcharts-in-ignition-perspective/95353)._
