# How to change the default limit in components

**URL:** <https://community.embeddable.com/t/how-to-change-the-default-limit-in-components/82>\
**Category:** FAQs\
**Created:** [December 12, 2024, 1:49pm UTC](https://community.embeddable.com/t/how-to-change-the-default-limit-in-components/82 "2024-12-12T13:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [December 12, 2024, 1:49pm UTC](https://community.embeddable.com/t/how-to-change-the-default-limit-in-components/82/1 "2024-12-12T13:49:03Z")

</div>

For the limit functionality, unset limits default to 100:

 ![Screenshot 2024-12-12 at 10.59.09](https://europe1.discourse-cdn.com/flex013/uploads/embeddable1/original/1X/bb59a7e404b10952e0f43f0dbedc2b537509c23c.png)  
You can get around this by setting the limit in the loadData function that’s in your emb.ts file, so for example if you don’t want to give the user an option to adjust the limit via an input, you could do something like:

```auto
   results: loadData({
        from: inputs.ds,
        limit: 5000,
        dimensions: [inputs.xAxis],
        measures: [inputs.metric],
      }),

```

But if you do have an input that allows the end user to set their own limit, you could do:

```auto
     results: loadData({
        from: inputs.ds,
        limit: inputs.limit || 5000,
        dimensions: [inputs.xAxis],
        measures: [inputs.metric],
      }),

```
