public static com.anychart.charts.Map bubbleMap() { return new com.anychart.charts.Map("anychart.bubbleMap()"); }
/** * */ public com.anychart.core.map.series.Choropleth choropleth(List<DataEntry> data) { return new com.anychart.core.map.series.Choropleth(String.format(Locale.US, jsBase + ".choropleth(%s)", arrayToString(data))); } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Map selectMarqueeFill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
/** * Drills down to a map. */ public com.anychart.charts.Map drillTo(String id, com.anychart.charts.Map map) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".drillTo(%s, %s);", wrapQuotes(id), (map != null) ? map.getJsBase() : null)); return this; } /**
map.title() .enabled(true) .useHtml(true) "per person each state consumed in 2013.</span>"); map.credits() .enabled(true) .url("https://en.wikipedia.org/wiki/List_of_sovereign_states_and_dependent_territories_by_population_density") .logoSrc("https://static.anychart.com/images/maps_samples/USA_Map_with_Linear_Scale/favicon.ico"); map.geoData("anychart.maps.united_states_of_america"); ColorRange colorRange = map.colorRange(); colorRange.enabled(true) .colorLineSize(10) .length(5); map.interactivity().selectionMode(SelectionMode.NONE); map.padding(0, 0, 0, 0); Choropleth series = map.choropleth(getData()); LinearColor linearColor = LinearColor.instantiate(); linearColor.colors(new String[]{ "#c2e9fb", "#81d4fa", "#01579b", "#002746"});
map.unboundRegions() .enabled(true) .fill(new SolidFill("#E1E1E1", 1)) .stroke("1 #D2D2D2"); map.geoData("anychart.maps.united_kingdom"); map.interactivity().selectionMode(SelectionMode.NONE); map.title().enabled(true); map.title().useHtml(true); map.title().text("Journey Route: the United Kingdom Roundtrip<br/>" + " <span style=\"color:#212121; font-size: 13px;\">Example shows sample of usage a multistage connector.<br/>" + " All data are fictitious.</span>"); Connector connectorSeries = map.connector(getCarData()); connectorSeries.startSize(0) .endSize(0) connectorSeries = map.connector(getShipData()); connectorSeries.startSize(0) .endSize(0) connectorSeries = map.connector(getAirData()); connectorSeries.startSize(0) .endSize(0) map.legend(true); Marker citiesSeries = map.marker(getCitiesData());
bubbleMap.geoData("anychart.maps.australia"); bubbleMap.title().enabled(true); bubbleMap.title().text("ACME corp. Offices by Australian Regions"); bubbleMap.title().padding(0, 0, 10, 0); Bubble series1 = bubbleMap.bubble(mapping1); series1.name("Amount of Offices in Region"); series1.legendItem("{ iconType: 'circle' }"); Bubble series2 = bubbleMap.bubble(mapping2); series2.name("Were Opened in Last Year"); series2.labels(false); bubbleMap.tooltip() .useHtml(true) .title("{ fontColor: '#7c868e' }") " }\n" + " }"); bubbleMap.tooltip().background() .enabled(true) .fill(new SolidFill("#fff", 1)) bubbleMap.legend() .enabled(true) .position("center-top") .padding(0, 0, 30, 0)
map.credits().enabled(true); map.credits() .url("https://opendata.socrata.com/dataset/Airport-Codes-mapped-to-Latitude-Longitude-in-the-/rxrh-4cxm") .text("Data source: https://opendata.socrata.com") .logoSrc("https://opendata.socrata.com/stylesheets/images/common/favicon.ico"); map.unboundRegions() .enabled(true) .fill(new SolidFill("#E1E1E1", 1)) .stroke("#D2D2D2"); map.geoData("anychart.maps.united_states_of_america"); map.title() .enabled(true) .useHtml(true) "According to opendata.socrata.com<br/>Cities and names were collected from Wikipedia.org</span>"); Marker series = map.marker(getData()); series.tooltip() .useHtml(true)
/** * Add series to the chart. */ public void addSeries(String[] var_args) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".addSeries(%s);", arrayToStringWrapQuotes(var_args))); } /**
/** * Renders the zoom controller. */ public void render(com.anychart.charts.Map parentElement) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".render(%s);", (parentElement != null) ? parentElement.getJsBase() : null)); } /**
/** * Setter for the chart paddings in pixels using a single value. */ public com.anychart.charts.Map padding(String[] padding) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s);", arrayToStringWrapQuotes(padding))); return this; } /**
/** * Set Map chart for zoom controller. */ public void target(com.anychart.charts.Map chart) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".target(%s);", (chart != null) ? chart.getJsBase() : null)); }
/** * Setter for the chart margin in pixels using a single complex object. */ public com.anychart.charts.Map margin(String[] margin) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s);", arrayToStringWrapQuotes(margin))); return this; } /**
public static com.anychart.charts.Map map() { return new com.anychart.charts.Map("anychart.map()"); }
/** * */ public com.anychart.core.map.series.Marker marker(List<DataEntry> data) { return new com.anychart.core.map.series.Marker(String.format(Locale.US, jsBase + ".marker(%s)", arrayToString(data))); } /**
/** * Setter for the map palette. */ public com.anychart.charts.Map palette(String[] settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".palette(%s);", arrayToStringWrapQuotes(settings))); return this; } /**
public static com.anychart.charts.Map markerMap() { return new com.anychart.charts.Map("anychart.markerMap()"); }
/** * */ public com.anychart.core.map.series.Bubble bubble(List<DataEntry> data) { return new com.anychart.core.map.series.Bubble(String.format(Locale.US, jsBase + ".bubble(%s)", arrayToString(data))); } /**
/** * Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Map selectMarqueeFill(String[] color) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s);", arrayToStringWrapQuotes(color))); return this; } /**
public static Map instantiate() { return new Map("new anychart.charts.map()"); }