Skip to content

DJ-Raven/java-geo-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-geo-chart

Geo chart custom using java swing

Sample code

// Create geo chart
GeoChart geoChart = new GeoChart();

// Init geo data with low resolution
geoChart.load(GeoData.Resolution.LOW);

// Set default zoom
geoChart.getGeoChart().zoom(2);

// Put data to geo chart (name, value, color)
geoChart.putData("Name 1", 5000, new Color(89, 152, 97));
geoChart.putData("Name 2", 3500, new Color(200, 149, 61));

// Put data with random color (name, value)
geoChart.putData("Name 3", 2500);

Create GeoChart Data View

// Create
GeoChartDataView geoChartDataView = new GeoChartDataView();

// Set it to geochart
geoChart.setGeoChartDataView(geoChartDataView);

Library Use

Screenshot

2023-04-16_003635

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages