Package org.pepstock.charba.client.geo
Contains all classes to activate the GEO controllers (AKA
chartjs-chart-geo.js
) for CHART.js.- Author:
- Andrea "Stock" Stocchero
-
Class Summary Class Description BubbleMapChart A Bubble Map, as known as Proportional Symbol is used to render maps with dots that are scaled according to some numerical value.
It is based on a regular bubble chart where the positioning is done using latitude and longitude to create a legend for the different radi.BubbleMapDataPoint Used for BubbleMap data sets to set the data to render.
A data has to have alatitude
andlongitude
properties and avalue
property containing the value for the coloring.BubbleMapDataPoint.BubbleMapDataPointFactory CreatesBubbleMapDataPoint
form aNativeObject
.BubbleMapDataset It is aBubbleDataset
with additional options for bubble map charts.BubbleMapElements ExtendsElements
provided by CHART.JS in order to add theBubbleMapPoint
element to be configured for GEO charts.BubbleMapOptions Specific options for bubble map chart.BubbleMapPoint The styling of the new elementBubbleMapPoint
is based onPoint
element with some additional options for the outline and graticule.ChoroplethBar The styling of the new elementChoroplethBar
is based onBar
element with some additional options for the outline and graticule.ChoroplethChart A choropleth chart is used to render maps with the area filled according to some numerical value.ChoroplethDataPoint Used for GEO data sets to set the data to render.
A GEO data has to have afeature
property containing the feature to render and avalue
property containing the value for the coloring.ChoroplethDataPoint.ChoroplethDataPointFactory CreatesChoroplethDataPoint
form aNativeObject
.ChoroplethDataset The choropleth data set allows a region definition (byFeature
) and specific value to be specified.ChoroplethElements ExtendsElements
provided by CHART.JS in order to add theChoroplethBar
element to be configured for GEO charts.ChoroplethOptions Specific options for choropleth chart.ColorAxis The coloring of the nodes will be done with a special color scale.
Provides the elements, as colored legend, which can provide the how the values are distributed on map.ColorLogarithmicAxis The coloring of the nodes will be done with a special color scale, for logarithmic data.
Provides the elements, as colored legend, which can provide the how the values are distributed on map.Coordinates Contains the latitude and longitude, calculated byBaseGeoChart.projectionInvert(CoordinatesPoint)
andBaseGeoChart.projectionInvert(double, double)
.CoordinatesPoint Contains the coordinates X and Y on the canvas, calculated byBaseGeoChart.projection(Coordinates)
andBaseGeoChart.projection(double, double)
.Feature Represents the region definition with all properties and geometries needed to draw the region.GeoUtil Utility to manage TopoJson definitions.
TopoJson is an extension of GeoJSON that encodes topology.
Rather than representing geometries discretely, geometries in TopoJson files are stitched together from shared line segments called arc.
PAY ATTENTION CHARBA doesn't include any TopoJSON files itself.
Some useful resources I found so far:
US map: https://www.npmjs.com/package/us-atlas World map: https://www.npmjs.com/package/world-atlas TopoJson collection: https://github.com/deldersveld/topojsonGraticule The network of intersecting lines of latitude and longitude is called the graticule.
It is imaginary on the earth, of course, but is drawn on globes and maps for reference.
The graticule of latitude and longitude lines is an angular measurement system.Legend Legend configuration for GEO chart scale.Margin Defines the margin pixels for legend such that it doesn't stick to the edge of the chart .Padding PositionPoint This object is wrapping the native java script object to provide the position of the legend.ProjectionAxis A map projection is a way to flatten a globe's surface into a plane in order to make a map.
This requires a systematic transformation of the latitudes and longitudes of locations from the surface of the globe into locations on a plane.
This is the scale which is managing the map projection.SizeAxis The scale is used to map the values to symbol radius size.
Provides the elements, as colored legend, which can provide the how the values are distributed on map.SizeLogarithmicAxis The scale is used to map the values to symbol radius size, for logarithmic data.
Provides the elements, as colored legend, which can provide the how the values are distributed on map.TopoJson TopoJSON is an extension of GeoJSON that encodes topology.