Inhalt:
...
Beispiel: Füllen der Daten
Hier finden Sie eine Liste aller validen Codes und Countries: Ländercodes
Code Block |
---|
language | java |
---|
theme | Eclipse |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
final ChartModel model = ChartModel.New()
.addColumn(Column.New(Column.Type.STRING, "Country"))
.addColumn(Column.New(Column.Type.NUMBER, "Popularity"));
model.addRow("Germany", 200);
model.addRow("United States", 300);
model.addRow("Brazil", 400);
model.addRow("Canada", 500);
model.addRow("France", 600);
model.addRow("RU", 700);
|
API und Methoden:
CgeoChart.setDatalessRegionColor("white"); |
|
DefaultColor | The color to use when for data points in a geochart when the location (e.g., 'US' ) is present but the value is either null or unspecified. This is distinct from datalessRegionColor , which is the color used when data is missing. |
CombgeoChart.setDefaultColor("white"); |
|
DisplayMode | Which type of geochart this is. The DataTable format must match the value specified. The following values are supported: |
MarkerOpacy | The opacity of the markers, where 0.0 is fully transparent and 1.0 is fully opaque. |
CombgeoChart.setMarkerOpacity(0.8); |
|
Resolution | The resolution of the geochart borders. Choose one of the following values: - 'countries' - Supported for all regions, except for US state regions.
- 'provinces' - Supported only for country regions and US state regions. Not supported for all countries; please test a country to see whether this option is supported.
- 'metros' - Supported for the US country region and US state regions only.
|
jjgeoChart.setResolution(Resolution.COUNTRIES); |
|
MagnifyingGlass | If true, when the user lingers over a cluttered marker, a magnifiying glass will be opened. Note: this feature is not supported in browsers that do not support SVG, i.e. Internet Explorer version 8 or earlier. Code Block |
---|
| geoChart.setMagnifyingGlass(MagnifyingGlass.New(true, 5 |
|
)); Füllen der Daten
Code Block |
---|
language | java |
---|
theme | Eclipse |
---|
firstline | 1 |
---|
title | model.addItem(String value, String value2, Integer value3) |
---|
linenumbers | true |
---|
|
model.addRow("United States", 327414000);
//Parameter 1 ("United States"): Ein valider Länder- oder Städtename
//Parameter 2 (327414000): Benötigter Wert z.B. Einwohner |
Hier finden Sie eine Liste aller validen Codes und Countries: Ländercodes
...
Code Block |
---|
language | java |
---|
theme | Eclipse |
---|
firstline | 1 |
---|
title | model.addItem(String value, String value2, Integer value3) |
---|
linenumbers | true |
---|
|
XdevGeoChart geoChart = new XdevGeoChart("<api-key>");
//oder
XdevGeoChart geoChart = new XdevGeoChart();
geoChart.setApiKey("<api-key>"); |
...
language | java |
---|
theme | Eclipse |
---|
firstline | 1 |
---|
title | model.addItem(String value, String value2, Integer value3) |
---|
linenumbers | true |
---|
...
...
...