Create your first widget

As you've seen in Key Concepts, CARTO can help you build fully-customizable, framework-agnostic charts and widgets that stay synchronized with your map, and offer advanced filtering abilities.

In the following examples you will learn how to add these widgets to your map, and how a widget can filter the map and viceversa. There are multiple examples but here's our recommendation on where to start:

  • Start with the Formula widget example if you need a very basic understanding of how widgets in CARTO work.

  • Go to the Hello world with widgets example if you need a more complete example, with several widgets and filtering in and from the widgets.

Feel free to modify these examples to use your own data! Just remember to change the token in the .env file, as well as the vectorTableSource properties.

Last updated