Widget auto style empowers you to create an agile dashboard that reflects color based distributions of data. A single click on the Auto style button (located directly from an embedded widget) applies a temporary color scheme, lets you filer by selected columns, and styles the map. This intuitive tool provides visual cues that pinpoint key insights about your data.
Auto style is dynamic and interactive. Each time you filter data with widgets, zoom or pan the map, CARTO recalculates the distribution of data, and applies automatic styling. Auto style can be turned on and off, without modifying any of your original style settings.
This guide provides an example of a dashboard with multiple widgets, allowing you to visualize how auto style is applied.
Unzip the template .carto file packaged from "Download resources" of this guide.
Import the .carto file to your account and create the map. Builder opens with US Counties as the first map layer and Railroad Accidents as the second map layer.
Click the WIDGETS pane to view all of the widgets applied to the dashboard.
Each widget clearly identifies which map layer it is filtering data from. You can rename the widget titles, click and drag to reorder how the widgets appear on your dashboard, and edit any of the details for each widget from the WIDGETS pane.
When you apply Auto style to a category widget, a qualitative color scheme is applied to demonstrate categorical differences in qualitative data. The color scheme applies different hues, with consistent steps in lightness and saturation.
From the category widget, Railroad Companies, click Auto style.
A qualitative color scheme temporarily overrides any custom styling that you applied. This makes it much easier to visualize the railroad companies that were involved in railroad accidents, by applying different hues to categorical difference in data.
To visualize more dynamic triggers of your dashboard, zoom in and pan the Map View. All of the widget values refresh, based on the visible data of your visualization.
When you apply Auto style to a histogram widget, a diverging or sequential color scheme is applied, depending on your data. For more details about using histogram widgets, see Filter a Range of Numerical Values with Histogram Widgets.
From the histogram widget, Sum Total Damage by County ($), click Auto style.
A color scheme is temporarily applied to your data. In this scenario, you can apply Auto style for both the Railroad Companies and the Sum Total Damage widgets.
Switch to the CartoCSS view of the US Counties map layer to see how auto style was applied to your data.
Auto style has already highlighted some key insights about your data. You can filter values from the widgets to gain an even deeper understanding about your data.
By default, all widgets are dynamic and automatically update when your map visualization changes, analyses are run, or when map layers are modified. Optionally, you can disable dynamic filtering and keep your widgets static, preventing any filters from updating when your data changes.
From the WIDGETS pane in Builder, edit a widget to view the options.
The DYNAMIC option indicates that the data (and analysis, if applicable) will dynamically update when your data changes. This is the default option,
When DYNAMIC is set to
NO, the widget filters remain static and do not update based on your visualization.
We would love to hear from you! Was it easy to understand? Do you need more information? Let us know.