HTML Canvas
Build your own custom widgets with the HTML Canvas
Last updated
Was this helpful?
Build your own custom widgets with the HTML Canvas
Ubidots offers off-the-shelf widgets for most visualization needs. However, some projects require more specific or fully custom widgets. For those cases, use the HTML Canvas widget to build custom visualizations with your own code.
HTML Canvas is a widget for building custom widgets. It lets you write custom code with the following languages, along with Ubidots built-in methods and third-party libraries described later:
HTML
CSS
JavaScript
This widget features a code editor composed of three tabs, one for each language.
Use HTML Canvas when other widgets do not meet your functionality or styling requirements.
Go to a dashboard, click the Add new widget button (+), scroll to the Advanced section, and select HTML Canvas.

The widget offers the following settings:
Code editor
Third-party libraries
Enable lazy loading
Preload dashboard data
The appearance of the widget can be customized further with these options:
Name
Custom Style
See Custom Style to learn how to customize your HTML Canvas styles.
Last updated
Was this helpful?
Was this helpful?