How to Use the Map Chart


  1. Click on the New Map Chart button on the toolbar, map_new_map_chart_button.png.

    Comment: You can also select Insert > New Visualization > Map Chart from the menu.

    Response: A visualization area is created for the map chart.

  2. Right-click in the visualization to display the pop-up menu and select Properties.

    Response: The Properties dialog is displayed.

  3. Go to the Data page to select map type and to set up the map chart.

    Comment: See the appropriate section below to learn how to set up the different map types.

  1. Create a map chart.

  2. Right-click in the visualization to display the pop-up menu and select Properties.

    Response: The Properties dialog is displayed.

  3. Go to the Data page.

  4. Select Map with interactive shapes from the Map type drop-down list.

  5. Select a data table containing map data.

    Comment: If a map data table has not already been added, click Add... to open the Add Data Table dialog where you can browse for a data table to use, such as an ESRI shape file. If you are not using a shape file, some manual configuration is needed. To learn how to do this, see Configuration of Geographical Data for Map Charts.

    Response: The map is displayed in the visualization area.

  6. Under Related data table for coloring, select a data table of interest.

    Comment: To be able to color by another data table than the map data table, the other data table must be related to the map data table.

  7. If a relation has already been defined, the colored map is now displayed in the visualization. If no relation is defined, or if you want to edit an existing relation, continue to step 8.

  8. Click the Manage Relations... button.

    Response: The Manage Relations dialog is opened.

  9. To create a new relation, click on the New... button to open the New Relation dialog. To edit an existing relation, click on the Edit... button to open the Edit Relation dialog.

  10. In the Left data table drop-down list, select the same data table that you selected under Related data table for coloring.

  11. In the Right data table drop-down list, select the map data table.

  12. In the Left column and the Right column drop-down lists, select columns that make up a valid relation between the two data tables. For instance, columns in both data tables describing the same regions, such as state or country names.

  13. Click OK.

  14. Click OK in the Manage Relations dialog.

    Response: The map is colored by a column in the related data table. To change which column to color the map by, go to the Colors page.

    Comment: To learn more about coloring in Spotfire, see Coloring Overview.

  15. To change the appearance of the map, go to the Appearance page.

  1. Create a map chart.

  2. Right-click in the visualization to display the pop-up menu and select Properties.

    Response: The Properties dialog is displayed.

  3. Go to the Data page.

  4. Select Map with markers or pies from the Map type drop-down list.

  5. Select a data table containing map data.

    Comment: If a map data table has not already been added, click Add... to open the Add Data Table dialog where you can browse for a data table to use, such as an ESRI shape file.

    Response: The map is displayed in the visualization area.

  6. Under Data table for markers or pies, select a data table of interest.

  7. Under Draw markers or pies using, select whether to use Relation or Coordinate columns to match the map data table to the data table for markers or pies.

    Comment: If you want to use a relation, you must set up a relation to make the Relation option available.

  8. To set up a relation, or to edit an existing relation, go through steps 9 to 15. To use an existing relation, go to step 16. To use coordinate columns, go through steps 17 to 19.

  9. Click the Manage Relations... button.

    Response: The Manage Relations dialog is opened.

  10. To create a new relation, click on the New... button to open the New Relation dialog. To edit an existing relation, click on the Edit... button to open the Edit Relation dialog.

  11. In the Left data table drop-down list, select the same data table that you selected under Related data table for coloring.

  12. In the Right data table drop-down list, select the map data table.

  13. In the Left column and the Right column drop-down lists, select columns that make up a valid relation between the two data tables. For instance, columns in both data tables describing the same regions, such as state or country names.

  14. Click OK.

  15. Click OK in the Manage Relations dialog.

  16. Select the Relation radio button.

    Response: Markers or pies are displayed in the map according to the positions given in the specified relation.

  17. Select the Coordinate columns radio button.

  18. In the X column drop-down list, select the X coordinate column.

  19. In the Y column drop-down list, select the Y coordinate column.

    Response: Markers or pies are displayed in the map according to the positions given in the coordinate columns.

  20. To change from markers to pies, or vice versa, go to the Shape page. To change the appearance of the map, go to the Appearance page.

  1. Create a map chart.

  2. Right-click in the visualization to display the pop-up menu and select Properties.

    Response: The Properties dialog is displayed.

  3. Go to the Data page.

  4. Select Background image with markers or pies from the Map type drop-down list.

  5. Click on Browse... to locate the interesting image file.

    Comment: You can use a vector file (EMF, WMF) or an image file (BMP, GIF, TIFF, JPG, PNG, etc.).

    Response: The image is shown in the visualization area.

  6. Under Data table for markers or pies, select a data table.

  7. Select X column and Y column from the drop-down lists.

  8. Click on the Position Settings... button to open the Position Settings dialog where you can adjust the image position relative to the data in the X and Y columns.

    Comment: If you do not have the exact coordinates of the map limits, you can locate a few known landmarks in the map and adjust the X and Y High and Low values until the corresponding markers are positioned on the correct landmarks.

  9. When done, click OK.

  10. To change from markers to pies, or vice versa, go to the Shape page.

Zooming and navigating in the map chart:

Located at the top right of the visualization are a number of buttons that you can use to zoom and navigate in the visualization.

Button

Shortcut

Description

vis_navigation_zoom_in.png

Press and hold the Shift key and the right mouse button simultaneously while moving the mouse up.

Zoom in.

vis_navigation_zoom_out.png

Press and hold the Shift key and the right mouse button simultaneously while moving the mouse down.

Zoom out.

 

Press and hold the Shift + Ctrl + Alt keys and the left mouse button simultaneously, while drawing a rectangle with the mouse pointer.

Zoom in on a rectangular area of a map.

vis_navigation_pan_right.png

Press and hold the Ctrl key and the right mouse button simultaneously to grab the map and move it in any direction.

Pan right.

vis_navigation_pan_left.png

-"-

Pan left.

vis_navigation_pan_up.png

-"-

Pan up.

vis_navigation_pan_down.png

-"-

Pan down.

vis_navigation_reset.png

 

Reset navigation.

You can also use the mouse wheel to zoom in or out.  To reset navigation to the default values, click on the Reset Navigation button or right-click in the visualization and select Reset Navigation.

Resizing markers and pies in the map chart:

You can use keyboard shortcuts to resize markers and pies in a map chart:

Shortcut

Description

Press and hold down the Ctrl key and the plus (+) key simultaneously until the markers or pies have the desired size.

Increase size of markers or pies.

Press and release the plus key repeatedly while pressing the Ctrl key.

Increase size of markers or pies.

Press and hold the Ctrl key and the minus (-) key simultaneously.

Decrease size of markers or pies.

Press and release the minus key repeatedly while pressing the Ctrl key.

Decrease size of markers or pies.

Press and hold down the Ctrl key while rotating the mouse wheel.

Resize markers or pies.

 You can also go into the Size page of the Properties dialog and use the slider control.

Labels in different map types

Labels can be used in any map type to identify and describe the markers, pies, or interactive shapes. Most settings related to labels are defined in the Labels page of the Map Chart Properties. In maps with markers or pies, you can click on a label to mark the corresponding marker, and mouseover a label to highlight both the label and the marker. In a map with a large amount of labels it can sometimes be useful to move the labels to other positions to make sure as many of the labels as possible are visible. This is done using drag and drop, and works slightly differently depending on the map type, as described below. In maps with interactive shapes, you can hover with the mouse pointer over a map shape to view its corresponding label if the label is hidden due to lack of space.

  1. Right-click in the visualization to display the pop-up menu and select Properties.

    Response: The Properties dialog is displayed.

  2. Go to the Labels page.

  3. Select the column to Label by.

    Response: Labels are displayed in the map.

    Comment: When a map with interactive shapes is used, the column to label by must always come from the same data table as the column to color by. The data table used for coloring is specified on the Data page.

  4. Specify whether to Show labels for All, Marked rows or None.

    Comment: If the map chart uses markers or pies you can change the Max number of labels, or select one or more of the check boxes to Center labels on items or Show empty labels. You can also specify Display options and get content from an image column, another source or apply some kind of transformation (if any transformations are available).

  1. Right-click in the visualization to display the pop-up menu and select Edit Label Positions.

    Response: The label editing is enabled.

  2. Click on the label you wish to move and drag it to its new position.

  3. When you are done, right-click on the visualization and select Edit Label Positions again to leave the label editing mode.

    Comment: You can get all original label positions back by right-clicking and selecting Reset Label Positions.

  1. Click on the label you wish to move and drag it to a new position.

  2. Response: The label is moved to the new position.

    Comment: You can get all original label positions back by right-clicking and selecting Reset Label Positions.

    Comment: When tiled markers are used, labels cannot be moved to other positions since they are always centered and displayed directly on the markers.

See also:

What is a Map Chart?

Map Chart Properties