Proximitii Book a Demo

Demographics Widget Documentation

Display population, households, education and other demographic insights for a selected radius. Read the installation details, parameters and examples.

The Demographics Widget displays hyperlocal population, household, economy, education, diversity, commute, and map insights for a selected location and radius.

Demographics Widget

Installation

Add the following embed code to your page or template. Replace the widget key and coordinates with your own values.

<div id="prox-demographics"></div>

<script src="https://widget.proximitii.com/v1/core/proximitii-widget.js?v=35"></script>

<script>
ProximitiiWidgets.demographics({
  container: 'prox-demographics',
  widgetKey: "PUT_YOUR_WIDGET_KEY_HERE",
  lat: 40.778832684988224,
  lon: -73.98103168840414
});
</script>

Always provide a valid widgetKey, lat, and lon. All other settings are optional and fall back to the defaults listed below.

Customization

The following Demographics Widget customization options are available.


General Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
ContainerThe ID of the div where the widget renders.N/AAny valid element IDcontainer
Widget KeyYour public widget key.N/AValid Proximitii widget keywidgetKey
LatitudeSets the latitude of the center location.N/ADecimal between -90 and 90lat
LongitudeSets the longitude of the center location.N/ADecimal between -180 and 180lon
RadiusSets the demographics search radius.500100 to 6400 metersradius
CountrySets the country dataset.usus or cacountry
LanguageSets the widget language.enen or frlanguage
Box StyleControls the widget container styling.shadowshadow or flatboxStyle


Content Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
TitleSets the widget title.Who Lives Here?Any valid texttitle
Title Font SizeSets the title font size.30pxCSS sizetitleFontSize
DescriptionSets the text shown below the title. The $radius token is replaced with the selected radius.Learn about the people, households, and lifestyles within a $radius radius.Any valid textdescription
Show HighlightsShows or hides the highlights section.truetrue/falseshowHighlights
Show MapShows or hides the map section.truetrue/falseshowMap
Show Download ReportShows or hides the download report button.truetrue/falseshowDownloadReport
Show PinShows or hides the location pin.truetrue/falseshowPin


Appearance Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show BorderShows or hides the widget border.truetrue/falseshowBorder
Primary ColorSets the primary brand color.#607eb8Hex colorprimaryColor
Secondary ColorSets the secondary panel/background color.#f8fafcHex colorsecondaryColor
Font FamilySets the widget font family.Poppins, sans-serifAny valid CSS font-familyfontFamily


Map Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Map HeightSets the map height.250pxCSS sizemapHeight
Map StyleSets the Proximitii map style.lightlight, bright, modern, baselinemapStyle
Disable Gesture HandlingDisables scroll-wheel and gesture handling on the map.falsetrue/falsedisableGestureHandling

Categories

Use categories to select the Demographics Widget sections to display.

Category NameVariableIndividual Toggle
PeoplepeoplecategoryPopulation
EconomyeconomycategoryEconomy
HousinghousingcategoryHouseholds
EducationeducationcategoryEducation
DiversitydiversitycategoryLanguages
CommutecommutecategoryGettingAround