# XY Chart - Selection of Points

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [January 11, 2024, 4:48pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126 "2024-01-11T16:48:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 11, 2024, 4:48pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/1 "2024-01-11T16:48:48Z")

</div>

Hi,

Back again with another XY Chart question. I have my chart displaying correctly i'm now trying to figure out the 'selection' options. I can figure out how to select a single point (click on it) but how can I select multiple?

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

I've tried shift+click, ctrl+click. . .

Thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 11, 2024, 5:18pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/2 "2024-01-11T17:18:12Z")

</div>

I don't think you can.

As a consolation prize, have a look at what you can do with tooltips. (The thread is kind of a cheat-sheet that I worked out.)

> [@Perspective XY Chart xAxes tooltip text {dateX}](https://forum.inductiveautomation.com/t/perspective-xy-chart-xaxes-tooltip-text-datex/53580):
>
> Can anyone see why the date is not appearing in the Tooltip? Reference: [X-Value in XY Chart Bullet Tooltip - #5 by PGriffith](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/5)

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 11, 2024, 5:35pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/3 "2024-01-11T17:35:23Z")

</div>

Humm. . . ok thanks.

In the linked thread where your bullets are transparent where did you add the opacity value?

I have somehow - made it select two point, so it seems the mechanism does exist:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/8/189c8c6eb60950b4e6aa8fceb991f799ca7c0fd3.png)

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

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 11, 2024, 5:56pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/4 "2024-01-11T17:56:55Z")

</div>

> [@DWhitaker](#):
>
> ... where did you add the opacity value?

`series.0.line.appearance.bullets.0.fill.opacity`  
You probably want to disable the stroke.  
There are some bugs with the bullets. The size setting doesn't work below 3. (The Perspective charts were "bought-in" from AM Charts and the implementation has a few funnies.)

> [@DWhitaker](#):
>
> I have somehow - made it select two point,

Oooh! Can you do it again though and share it with the rest of us?

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 11, 2024, 8:59pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/5 "2024-01-11T20:59:14Z")

</div>

> [@Transistor](#):
>
> Oooh! Can you do it again though and share it with the rest of us?

I haven't managed to do it again - 😕 It happened during an exasperated _slap_ of the keyboard. . .

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 11, 2024, 9:24pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/6 "2024-01-11T21:24:19Z")

</div>

> [@DWhitaker](#):
>
> an exasperated _slap_ of the keyboard. . .

In Designer or in a browser session?

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 11, 2024, 9:30pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/7 "2024-01-11T21:30:32Z")

</div>

In designer, with the view in 'play' mode.

I feel like there must be a way to do it. The docs for AM Chart have a section for cursor selection. . .

If not I'll just write a script to monitor for value change and programatically select between the two clicks

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 17, 2024, 11:28pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/8 "2024-01-17T23:28:50Z")

</div>

Ok - so a half working solution so far.

Event script bound to a double click on the chart:

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

This adds the selected point to the table dataset, the table dataset is bound to a second chart dataset which in turn has a series associated with it, so it shows up the selected points:

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

The issue with this is the zoom level resets everytime you double click a point. . . . so that is the next battle. . .

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [January 17, 2024, 11:39pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/9 "2024-01-17T23:39:44Z")

</div>

> [@DWhitaker](#):
>
> The issue with this is the zoom level resets everytime you double click a point

The events configuration should have options called 'Stop Propagation' and 'Prevent Default'. Try turning those (or either one) on and see if that stops the zoom reset.

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 18, 2024, 1:29pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/10 "2024-01-18T13:29:44Z")

</div>

> [@ryan.white](#):
>
> The events configuration should have options called 'Stop Propagation' and 'Prevent Default'. Try turning those (or either one) on and see if that stops the zoom reset.

Unfortunately not, the zoom only resets when the dataset is bound back to the chart. i.e. if I just have the double click update the table then the zoom remains. But once the chart datasets are dynamic then the zoom resets on update

If you pass the dataset into the "selected data" section of the chart properties it works but then it doesn't display them

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 18, 2024, 1:47pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/11 "2024-01-18T13:47:09Z")

</div>

[Perspective - XY Chart - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+XY+Chart) states that `selection.data` is "A **read-only** list of selected data points."

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 18, 2024, 1:59pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/12 "2024-01-18T13:59:52Z")

</div>

Well you can definitely write into them from a script. . .

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 18, 2024, 2:22pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/13 "2024-01-18T14:22:41Z")

</div>

You can probably do that for any property but it looks like nobody is listening in this case.

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 18, 2024, 2:44pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/14 "2024-01-18T14:44:19Z")

</div>

Seems that way - but also the wording; "A read-only list of selected data point **s**."  
does suggest that there is a way to select multiple points. . .

Is there a property that is the current zoom range?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 18, 2024, 3:21pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/15 "2024-01-18T15:21:35Z")

</div>

> [@DWhitaker](#):
>
> there is a way to select multiple points

There is: in the browser, when there are multiple pens.

The verbiage indicates that only the user can set this property, not a script.

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [January 18, 2024, 3:41pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/16 "2024-01-18T15:41:41Z")

</div>

Cool. Cool.

So is this functionality of the AMChart not yet available:

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

I'm pretty sure I can script something that achieves what I need - I just want to be 100% sure there isn't a native functionality first. . .

---

<div class="post-metadata">

**Author:** ![Farhan\_Basheer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/farhan_basheer/32/66759_2.png) [@Farhan\_Basheer](https://forum.inductiveautomation.com/u/Farhan_Basheer)\
**Post date:** [April 16, 2026, 9:00pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/17 "2026-04-16T21:00:47Z")

</div>

@DWhitaker were you able to highlight the point, It would be golden if you've achieved it with the script.

---

<div class="post-metadata">

**Author:** ![DWhitaker](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@DWhitaker](https://forum.inductiveautomation.com/u/DWhitaker)\
**Post date:** [April 16, 2026, 9:14pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/18 "2026-04-16T21:14:44Z")

</div>

Unfortunately not. As with everything that gets requested it was urgent until it wasn't

---

<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:** [April 16, 2026, 9:39pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/19 "2026-04-16T21:39:25Z")

</div>

> [@Farhan\_Basheer](#):
>
> highlight the point

You can do this, plus way more with Embr Charts `Chart.js` and `ApexCharts` components.

> **[Embr Charts | Musson Industrial](https://docs.mussonindustrial.com/ignition/embr-charts/)**
>
> About

---

<div class="post-metadata">

**Author:** ![Farhan\_Basheer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/farhan_basheer/32/66759_2.png) [@Farhan\_Basheer](https://forum.inductiveautomation.com/u/Farhan_Basheer)\
**Post date:** [April 17, 2026, 12:35pm UTC](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126/20 "2026-04-17T12:35:25Z")

</div>

No worries, thank you for the prompt response 🙂

[Next page](https://forum.inductiveautomation.com/t/xy-chart-selection-of-points/84126.md?page=2)
