Skip to main content

GeoChart

Namespace: Wisej.Web.Ext.Webix

Assembly: Wisej.Web.Ext.Webix (4.1.0.0)

The GeoChart widget displays information about countries, regions or states according to the provided data with the help of Webix and Google Map API.

public class GeoChart : wxBase

Constructors​

Instance member GeoChart()​

Constructs a new instance of the GeoChart class.

Example:

The following example creates a geo chart, assigns the Google Maps API key and loads the data for three countries.

var map = new GeoChart();
map.Options.key = "YOUR-GOOGLE-API-KEY";
map.Options.data = new[]
{
new { id = 1, country = "Germany", population = 83 },
new { id = 2, country = "France", population = 68 },
new { id = 3, country = "Italy", population = 59 }
};
map.Dock = DockStyle.Fill;
this.Controls.Add(map);

Instance member GeoChart(options)​

Constructs a new instance of the GeoChart class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a geo chart passing the Google Maps API key and the data to the constructor.

var map = new GeoChart(new
{
key = "YOUR-GOOGLE-API-KEY",
data = new[]
{
new { id = 1, country = "Brazil", area = 8515767 },
new { id = 2, country = "Argentina", area = 2780400 }
}
});
map.Dock = DockStyle.Fill;
this.Controls.Add(map);

Implements​