Getting started
Step-by-step walkthrough for building your first widget plugin using the Highcharts library.
Widget plugin
Let's create a widget that uses the Highcharts JavaScript library to plot time series data. It will look like this:

Download the ZIP file that contains the source code for this widget from here. Then go to Ubidots ⟶ Devices ⟶ Plugins. Once there, click the Developer console icon:

Click the + icon to create a new plugin, set a name and description, then click the done button. After that, your new plugin will be created:

Click the newly created plugin's name. In the General information tab, click Add Plugin Icon to upload the icon that will appear in the plugins drawer, then click Save in the Display information section. You can download the icon from here.

Scroll down to the Plugin description section, paste the following README, and click the Save button in that section.
Navigate to the Version tab in the sidebar menu. Click the "+" icon and upload the ZIP file. The plugin is now in your Ubidots account, but it still needs to be deployed.
In the Versions tab, scroll down to the Version history section and click the icon that looks like a paper airplane:

A confirmation dialog will appear. Click the Release button:

After that, your plugin's status will change from Draft to Released:

Go to Devices ⟶ Plugins and click the Create new plugin button. In the plugins drawer, search for the plugin you just created, Highcharts custom widget, fill in the required Ubidots token field, and click Done. After that, you will see that a new plugin has been created:

Go to the dashboard where you want to place the widget and click the Add new widget button. A drawer will pop up and display all available widgets. Search for the widget you just created and click it. An instance of the plugin will be placed on the dashboard:

Fill in the widget fields based on the variable whose data you want to visualize. The following screenshot shows an example:

The widget is now created on the dashboard. This is how it looks:

Last updated
Was this helpful?