# Integer limit and extract from payload

**URL:** https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662
**Category:** General
**Created:** [26 March 2020 09:43 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662 "2020-03-26T09:43:31Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 March 2020 20:08 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662/21 "2020-03-31T20:08:04Z")

</div>

We could ask @apex which of the solutions he finds easiest to understand.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [31 March 2020 20:10 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662/22 "2020-03-31T20:10:30Z")

</div>

Or we could let him decide and not worry about it 😸

For me, time to relax with a movie I think. Enough brain cells exercised for one day, I need to chill.

---

<div class="post-metadata">

### Author: ![apex](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@apex](https://discourse.nodered.org/u/apex)
#### Post date: [1 April 2020 02:43 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662/23 "2020-04-01T02:43:44Z")

</div>

thanks all, yesterday i try the .length solution and now everything works fine.

I will take a look of ForEach tomorrow and dig of it.

And i have another question regarding this work.

Now i want to make the "start " or "end" of the chart x axis be assignable /settable ,

And i am plotinng the data from the API to the chart using this

```auto
`series = [];
data = [];
labels = [];

series.push("Battery");
labels.push("Labels");
data.push(msg.data);

msg.payload = [{"series":series, "data":data,"labels": labels}];

return msg;`

i find this `https://www.youtube.com/watch?v=nkKf26oKzhQ&t=862s`

is 99% similar to what i need, but i need many time to digest it~

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [1 April 2020 07:44 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662/24 "2020-04-01T07:44:52Z")

</div>

> [@apex](#):
>
> i find this

Please do a screen capture and paste that rather than a link somewhere else. You can paste an image into the post directly.

---

<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: [31 May 2020 07:44 UTC](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662/25 "2020-05-31T07:44:57Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/integer-limit-and-extract-from-payload/23662.md?page=1)
