Diagram Overlay Plugin

diagram The Diagram Overlay Plugin allows you to add a graphic overlay to a vector layer (see figure_overlay_1). It provides additional and not yet implemented features to the Diagrams tab, described in secion Диаграммы.

Before starting, the Diagram Overlay Plugin needs to be activated using the Plugin Manager (see Section Загрузка основных модулей QGIS). It will then appear as Overlay tab in the Layer Properties dialog next to the Diagrams tab.

Figure Overlay 1:

../../../_images/overlay_tab1.png

Vector properties dialog with overlay tab nix

The Overlay tab provides support for Pie charts, Bar charts and proportional SVG symbols.

Similar to the Diagrams tab, we will demonstrate an example and overlay the alaska boundary layer a piechart diagram showing some temperature data from a climate vector layer. Both vector layers are part of the QGIS sample dataset (see Section Примеры данных).

  1. First click on the mActionAddOgrLayer Load Vector icon, browse to the QGIS sample dataset folder and load the two vector shape layers alaska.shp and climate.shp.
  2. Double click the climate layer in the map legend to open the Layer Properties dialog.
  3. Click on the Overlay tab, activate checkbox Display diagrams and select ‘Pie Chart’ from Diagram type selectstring combobox.
  4. We want to display the values of the three columns T_F_JAN, T_F_JUL and T_F_MEAN. First select T_F_JAN as Attributes and click the [Add] button, then T_F_JUL and finally T_F_MEAN.
  5. Diagram size is based on linear scaling of a classification attribute. We choose T_F_JUL, click on [Find maximum value] and set size to 20 and Size unit selectstring to ‘Millimeter’.
  6. Now click [Apply] to display the diagram in the QGIS main window.
  7. You can now adapt the chart size, or change the attribute colors double clicking on the color values in the attribute field. Figure_overlay_2 gives an impression.
  8. Finally click [Ok].

Figure Overlay 2:

../../../_images/overlay_tab2.png

Pie chart diagram from temperature data overlayed on a map nix

Additionally in the Settings ‣ Options dialog, there is a Overlay tab where it is possible to select the placement algorithm of the diagrams. The ‘Central point’ method is a generic one, the others use algorithms of the PAL library. They also consider diagram objects and labels in different layers.