# Custom Chart Block is not reading all data

**URL:** <https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819>\
**Category:** Help\
**Tags:** custom-chart-block, dashboard, data-table\
**Created:** [November 22, 2022, 11:01pm UTC](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819 "2022-11-22T23:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luisa\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@Luisa\_Rodrigues](https://forums.losant.com/u/Luisa_Rodrigues)\
**Post date:** [November 22, 2022, 11:01pm UTC](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819/1 "2022-11-22T23:01:06Z")

</div>

Hello!  
I’m trying to make a graph using a data from a data table (custom chart block). However, the graph is only reading 1000 of my 10040 rows. How can I include all data?  
Thanks in advance!

My script:

{  
“width”: {{block.width}},  
“height”: {{block.height}},

“autosize”: {  
“type”: “fit”,  
“contains”: “padding”

},  
“config”: {  
“axis”: {  
“labelColor”: “#888c95”,  
“titleColor”: “#888c95”,  
“domain”: false  
},  
“legend”: {  
“labelColor”: “#888c95”,  
“titleColor”: “#888c95”  
}

},

“data”: {  
“name”: “data-table-0”

},  
“mark”: “line”,

“encoding”: {  
“x”: {  
“field”: “DATA”,  
“type”: “temporal”,  
“scale”: {“domain”: [“03/05/2018 00:40”,“03/12/2018 00:40”]}

```
},
"y": {
  "field": "Ua",
  "type": "quantitative",
  "scale": {"domain": [150,250]}

}

```

}

}

 ![graph](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/0/0c2ed2c04ef231743f67aaf5c964e00053fcb36e.jpeg)

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [November 23, 2022, 3:25pm UTC](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819/2 "2022-11-23T15:25:28Z")

</div>

Hi @Luisa_Rodrigues and welcome to the Losant forums!

The Custom Chart dashboard block can only display a maximum of 1000 data table rows. You can provide a [custom query](https://docs.losant.com/dashboards/blocks/custom-chart/#data-table-queries) to limit the scope of the chart to under 1000 rows.

Let us know if you have any further questions and once again, welcome to the forums!

---

<div class="post-metadata">

**Author:** ![Luisa\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@Luisa\_Rodrigues](https://forums.losant.com/u/Luisa_Rodrigues)\
**Post date:** [November 27, 2022, 3:45pm UTC](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819/3 "2022-11-27T15:45:49Z")

</div>

Hello @Sebastian_Turner , thanks a lot!
