All Projects → rte-antares-rpackage → leaflet.minichart

rte-antares-rpackage / leaflet.minichart

Licence: other
Leaflet.minichart is a leaflet plugin for adding to a leaflet map small animated charts

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to leaflet.minichart

mapus
A map tool with real-time collaboration 🗺️
Stars: ✭ 2,687 (+9851.85%)
Mutual labels:  map, maps, leaflet
coronavirus-map-dashboard
🦠 Coronavirus (COVID-19) Map Dashboard using coronavirus-tracker-api
Stars: ✭ 41 (+51.85%)
Mutual labels:  map, maps, leaflet
o.map
Open Street Map app - KaiOS
Stars: ✭ 51 (+88.89%)
Mutual labels:  map, maps, leaflet
vaguely-rude-places
The map of Vaguely Rude Place Names
Stars: ✭ 19 (-29.63%)
Mutual labels:  map, maps, leaflet
Offlinemap
基于MySQL + Node.js + Leaflet的离线地图展示,支持百度、谷歌、高德、腾讯地图
Stars: ✭ 343 (+1170.37%)
Mutual labels:  map, maps, leaflet
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+7174.07%)
Mutual labels:  map, leaflet
Azuremapscodesamples
A set of code samples for the Azure Maps web control.
Stars: ✭ 167 (+518.52%)
Mutual labels:  map, maps
Openglobus
JavaScript 3d maps and geospatial data visualization engine library.
Stars: ✭ 199 (+637.04%)
Mutual labels:  map, maps
Maps
🌍🌏🌎 The whole world fits inside your cloud!
Stars: ✭ 253 (+837.04%)
Mutual labels:  map, maps
Vue2leaflet
Vue 2 components for Leaflet maps
Stars: ✭ 1,809 (+6600%)
Mutual labels:  map, leaflet
Gmapsfx
Java API for using Google Maps within a JavaFX application.
Stars: ✭ 233 (+762.96%)
Mutual labels:  map, maps
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+81.48%)
Mutual labels:  maps, leaflet
Openrailwaymap
An OpenStreetMap-based project for creating a map of the world's railway infrastructure.
Stars: ✭ 150 (+455.56%)
Mutual labels:  map, maps
Mapbox.js
Mapbox JavaScript API, a Leaflet Plugin
Stars: ✭ 1,819 (+6637.04%)
Mutual labels:  map, leaflet
Mapsapi
Карты 2ГИС — это точные данные обо всех объектах города, включая новостройки, с детализацией до заборов и внутриквартальных проездов.
Stars: ✭ 193 (+614.81%)
Mutual labels:  map, leaflet
Papyruscs
PapyrusCS renders maps of Minecraft: Bedrock Edition worlds using C#, LevelDB and leaflet.
Stars: ✭ 146 (+440.74%)
Mutual labels:  map, leaflet
Go Staticmaps
A go (golang) library and command line tool to render static map images using OpenStreetMap tiles.
Stars: ✭ 246 (+811.11%)
Mutual labels:  map, maps
antaresViz
ANTARES Visualizations
Stars: ✭ 19 (-29.63%)
Mutual labels:  leaflet, rte
geofind
Multiplayer Geographical Guessing Game using PostGIS, Nuxt, Leaflet & Colyseus.
Stars: ✭ 31 (+14.81%)
Mutual labels:  maps, leaflet
jquery-linechart
JQuery plugin for creating charts
Stars: ✭ 42 (+55.56%)
Mutual labels:  chart, barchart

NPM

Leaflet.minichart

Leaflet.minichart is a leaflet plugin for adding to a leaflet map small animated bar charts, pie charts or polar area charts.

It can be used to visualize multiple variables associated to geographical coordinates and to look at the evolution of these variables.

Here are screenshots of some maps that use this plugin.

This plugin is also available as an R package.

Usage

You need to include the leaflet CSS and javascript files and then the leaflet.minichart javascript file in the head section of your document:

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" media="screen" title="leaflet">
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" charset="utf-8"></script>
<script src="https://unpkg.com/leaflet.minichart/dist/leaflet.minichart.min.js" charset="utf-8"></script>

Once these files included, you can create charts with function L.minichart(). All parameters are described here.

Example

Here is a sample code that initializes a map and adds to it a barchart that represents three random values. Then the code updates the value every two seconds and redraws the chart.

var center = [48.861415, 2.349326];

var mymap = L.map('map').setView(coord, 13);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(mymap);

// Let us generate fake data
function fakeData() {
  return [Math.random(), Math.random(), Math.random()];
}

// Create a barchart
var myBarChart = L.minichart(center, {data: fakeData()});
mymap.addLayer(myBarChart);

// Update data every 2 seconds
setInterval(function() {
  myBarChart.setOptions({data: fakeData()})
}, 2000);

Example of a barchart on a map

You can find more complete examples here:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].