# \#custom-chart-block

**URL:** https://forums.losant.com/tag/custom-chart-block/6.md

[Latest](https://forums.losant.com/latest.md) · [Categories](https://forums.losant.com/categories.md) · [Tags](https://forums.losant.com/tags.md)

---

## [Handling Time Series Data Beyond 10,000 Points – Chart Options or Custom Approaches?](https://forums.losant.com/t/handling-time-series-data-beyond-10-000-points-chart-options-or-custom-approaches/5825)

<div class="topic-metadata">

**Author:** [@Surya\_Kapisetti](https://forums.losant.com/u/Surya_Kapisetti)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 4:15pm UTC](https://forums.losant.com/t/handling-time-series-data-beyond-10-000-points-chart-options-or-custom-approaches/5825 "2025-04-16T16:15:56Z")

</div>

Hi Losant Team, I’m working on a dashboard where one of my devices reports attributes every 15 minutes, and I’m attempting to visualize this data over a 180-day period using the Time Series Graph Block. However, I’ve e…

---

## [Extracting json fields from encoded json string under datasets property - Custom Charts](https://forums.losant.com/t/extracting-json-fields-from-encoded-json-string-under-datasets-property-custom-charts/5078)

<div class="topic-metadata">

**Author:** [@MaskiMan21](https://forums.losant.com/u/MaskiMan21)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 2:58pm UTC](https://forums.losant.com/t/extracting-json-fields-from-encoded-json-string-under-datasets-property-custom-charts/5078 "2023-05-31T14:58:58Z")

</div>

Hey guys, My question veers more into the use of vega-5 / vega-lite rather than Losant but I haven’t found a great answer thus far so hoping someone here is able to help. I apologise if the solution is straightforward, …

---

## [\[Solved\] On/Off - green/Red](https://forums.losant.com/t/solved-on-off-green-red/1480)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 12\
**Last updated:** [April 21, 2023, 3:10pm UTC](https://forums.losant.com/t/solved-on-off-green-red/1480 "2023-04-21T15:10:46Z")

</div>

Seen some of your example graph of on/off status with just green/red blocks filling the graph. Which block/configuration was used?

---

## [Custom Chart Block is not reading all data](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819)

<div class="topic-metadata">

**Author:** [@Luisa\_Rodrigues](https://forums.losant.com/u/Luisa_Rodrigues)\
**Replies:** 2\
**Last updated:** [November 27, 2022, 3:45pm UTC](https://forums.losant.com/t/custom-chart-block-is-not-reading-all-data/4819 "2022-11-27T15:45:49Z")

</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”: {…

---

## [Custom Chart how to get CTX variables?](https://forums.losant.com/t/custom-chart-how-to-get-ctx-variables/4769)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 2:47pm UTC](https://forums.losant.com/t/custom-chart-how-to-get-ctx-variables/4769 "2022-10-12T14:47:17Z")

</div>

Hi there, reading the documentation ctx.\<variableName\> - The value of any context variable on your dashboard. but how do I reference it in the JS code? In the provided example: var ctx = document.getElementById('…

---

## [Suggestion for time series library in JS](https://forums.losant.com/t/suggestion-for-time-series-library-in-js/4604)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 4\
**Last updated:** [June 29, 2022, 11:24am UTC](https://forums.losant.com/t/suggestion-for-time-series-library-in-js/4604 "2022-06-29T11:24:40Z")

</div>

Hi there, I am getting familiar with the custom HTML widgets but one of the obstacles (being new to JS) is the lack of tools to manipulate time series data. For example I need to slice the series to select day vs night…

---

## [Custom HTML tutorial errors](https://forums.losant.com/t/custom-html-tutorial-errors/4579)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 5\
**Last updated:** [June 11, 2022, 10:34am UTC](https://forums.losant.com/t/custom-html-tutorial-errors/4579 "2022-06-11T10:34:49Z")

</div>

Hi there, I am fiddling with the custom HTML block because I need to build some basic histogram charts. I am following the tutorial here (https://docs.losant.com/dashboards/custom-html/#time-series-queries) but somethi…

---

## [Context variables in the Custom Chart](https://forums.losant.com/t/context-variables-in-the-custom-chart/2950)

<div class="topic-metadata">

**Author:** [@lucasbtsuchiya](https://forums.losant.com/u/lucasbtsuchiya)\
**Replies:** 10\
**Last updated:** [May 19, 2020, 9:18pm UTC](https://forums.losant.com/t/context-variables-in-the-custom-chart/2950 "2020-05-19T21:18:56Z")

</div>

Is there a way to read the value of a context variable in the Custom Chart dashboard using the Vega-lite library? “data”: \[ { “name”: “table”, “values”: \[ {“key”: “Eixo X”, “value”: {{ctx.variable}}, “category”: 0}, …
