Official Content

Introduction

This control shows a map that highlights regions or countries based on relative values.

Example

The user control is really simple, you just need to set one property in order to get the control working, the Series property.

Show a simple chart to illustrate population and area of certain countries

  • Drag and drop Intensity Map.
     
  • Assign to Series property a variable based on CountryInfo data type (this SDT is automatically imported when dropping the control to the web form).
     
  • Load the information that will be shown by the chart using the previous mentioned variable.
     
Sub 'LoadIntensityMap'
  &Countries.Info.Add("Population")
  &Countries.Info.Add("Area")

  &Country = new()
  &Country.CountryISO = "BR"
  // Population
  &Country.Values.Add(187)
  // Area
  &Country.Values.Add(8514877)
  &Countries.Countries.Add(&Country)

  &Country = new()
  &Country.CountryISO = "CN"
  // Population
  &Country.Values.Add(1324)
  // Area
  &Country.Values.Add(96400821)
  &Countries.Countries.Add(&Country)
EndSub

Note: &Country is based on CountryInfo.Country and &Countries is based on CountryInfo SDT.

IntensityMap-Population
IntensityMap-Area



Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant