Data Visualization Widgets VectorMap

A vector map widget.

Included in: dx.chartjs.js, dx.all.js

The dxVectorMap widget is designed to visualize data connected with a geographical location. This widget represents a map that contains areas and markers. The map areas usually reflect geographical regions, such as countries, continents, etc., while the map markers are used to flag certain points on a map, e.g., towns, cities or capitals.

You can create a widget using one of the following approaches.

  • jQuery
    Use the dxVectorMap jQuery plug-in.

    HTML
    <div id="mapContainer"></div>
    JavaScript
    $("#mapContainer").dxVectorMap({
        mapData: DevExpress.viz.map.sources.world,
        //...
    });
  • Knockout
    Add a div element and apply the dxVectorMap binding to this element.

    HTML
    <div data-bind="dxVectorMap: {
        mapData: DevExpress.viz.map.sources.world,
        //...
    }"></div>
  • Angular
    Add a div element and apply the dx-vector-map directive to this element.

    HTML
    <div dx-vector-map="{
        mapData: DevExpress.viz.map.sources.world,
        //...
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

Start Tutorial View Demo Watch Video

See Also

To learn the widget's concepts and overview features, refer to the Vector Map section within the Data Visualization Guides.

Configuration

An object that specifies configuration options for the dxVectorMap widget.

Methods

This section describes the methods that can be used in code to manipulate objects related to the dxVectorMap widget.

Events

This section describes events exposed by this widget.

Map Elements

This section lists the methods and fields of the map elements.