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.
- C#
- VB.NET
public class GeoChart : wxBase
Public Class GeoChart
Inherits wxBase
Constructors
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);
GeoChart(options)
Constructs a new instance of the GeoChart class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);