# Search UI: shows X/Y

**URL:** <https://discourse.nodered.org/t/search-ui-shows-x-y/48370>\
**Category:** Dashboard\
**Created:** [13 July 2021 15:55 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370 "2021-07-13T15:55:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mannshoch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannshoch/32/19477_2.png) [@Mannshoch](https://discourse.nodered.org/u/Mannshoch)\
**Post date:** [13 July 2021 15:55 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/1 "2021-07-13T15:55:58Z")

</div>

I get periodical XY coordinates. I wish to have an image in the dashboard that shows me that points. (Optional draw a line to follow the history)  
A node should receive the coordinates and draw an Image that (optiona) auto-focus on the coordinates. I do not need any text or values on it simply the dots or the line from dot to dot.

Is there a way to do that?

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [14 July 2021 02:49 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/2 "2021-07-14T02:49:48Z")

</div>

> [@Mannshoch](#):
>
> Is there a way to do that?

Did you search first?

There is an example in the worldmap node that demonstrates something similar...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dc8af939f2dc2522fab8ac5d04d2f0a130bbada8.png) ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69be1ccd7880828972aa234c67757c04eb0bafdd.png)

---

<div class="post-metadata">

**Author:** ![Mannshoch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannshoch/32/19477_2.png) [@Mannshoch](https://discourse.nodered.org/u/Mannshoch)\
**Post date:** [14 July 2021 08:22 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/3 "2021-07-14T08:22:23Z")

</div>

Yes I did.  
The Problem is here I do not have GPS coordinates I have simpel X/Y both from -1000 to +1000 and I do not need an OSM map.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 July 2021 08:40 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/4 "2021-07-14T08:40:15Z")

</div>

For me it sounds like chart with linear axis in both direction.  
See this thread [How to draw xy charts?](https://discourse.nodered.org/t/how-to-draw-xy-charts/48174)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [14 July 2021 09:20 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/5 "2021-07-14T09:20:06Z")

</div>

> [@Mannshoch](#):
>
> The Problem is here I do not have GPS coordinates I have simpel X/Y both from -1000 to +1000 and I do not need an OSM map.

And it only took you 16 hours to supply those additional details 🙂

Charting does sound more applicable now.

---

<div class="post-metadata">

**Author:** ![Mannshoch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannshoch/32/19477_2.png) [@Mannshoch](https://discourse.nodered.org/u/Mannshoch)\
**Post date:** [14 July 2021 14:25 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/6 "2021-07-14T14:25:32Z")

</div>

Thanks @hotNipi I was not aware, that I could change the time line to a value I wish.

This was really helpful. I combined this with the ability to add data to an array from here:

> [@How to add to array elements?](https://discourse.nodered.org/t/how-to-add-to-array-elements/34981):
>
> Could you help me to add an element/elements to the array and then display array in the debug window. I do something wrong! var array = flow.get('array') || ""; flow.set("array", flow.get("array").push(msg.payload)); return [msg]; my flow [{"id":"8e05673f.25a118","type":"tab","label":"Delay","disabled":false,"info":""},{"id":"e9887f38.771fb","type":"inject","z":"8e05673f.25a118","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":…

Is there a limit how huge an array could be?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 July 2021 14:55 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/7 "2021-07-14T14:55:54Z")

</div>

> [@Mannshoch](#):
>
> Is there a limit how huge an array could be?

A 20 sec search of internet reveals...

> the maximum length of an **array** according to the ECMA-262 5th Edition specification is bound by an unsigned 32-bit integer due to the ToUint32 abstract operation, so the longest possible **array could** have 232-1 = 4,294,967,295 = 4.29 billion elements

---

<div class="post-metadata">

**Author:** ![Mannshoch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannshoch/32/19477_2.png) [@Mannshoch](https://discourse.nodered.org/u/Mannshoch)\
**Post date:** [14 July 2021 15:41 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/8 "2021-07-14T15:41:38Z")

</div>

Thanks.  
That's nice, I was not sure if any rule for javascript also works for nodered. That way, if I add all sec 15 character to an array I have to be sure that I reset at least all 3314days. That's no problem. I will reset the array weekly.

By the way, node-red is my first touch with coding. Until running noderd I only have som experience with CMD.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 August 2021 15:41 UTC](https://discourse.nodered.org/t/search-ui-shows-x-y/48370/9 "2021-08-13T15:41:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
