• Stars
    star
    185
  • Rank 206,632 (Top 5 %)
  • Language
    JavaScript
  • License
    European Union Pu...
  • Created almost 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A package for visualizing gridded data ๐ŸŒ

Gridviz

npm bundle size npm license

Gridviz is a JavaScript library to visualise gridded data (or any tabular dataset with x/y position) in the browser in a large variety of advanced cartographic styles. Unlike traditional raster-based web mapping tools, Gridviz renders everything client-side, on the fly.

shadow effect map tanaka style map joyplot map lego map mosaic map dot density map tanaka style map dot density map joyplot map

Examples

Installation

Node.js

npm install gridviz

then

import * as gridviz from 'gridviz'

Or you can cherry-pick only the modules that you need, for example:

import { App, SquareColorWGLStyle } from 'gridviz'

Basic example

Hereโ€™s a basic example that loads a CSV file of a European population grid (5km resolution):

let myApp = new gridviz.App(containerDiv)
    //set position and zoom
    .setGeoCenter({ x: 4500000, y: 2900000 })
    .setZoomFactor(3000)
    //add CSV layer
    .addCSVGridLayer(
        //data URL
        'https://raw.githubusercontent.com/eurostat/gridviz/master/assets/csv/Europe/pop_2018_5km.csv',
        //resolution, in CRS unit (m)
        5000,
        //the style
        [
            new gridviz.SquareColorWGLStyle({
                //the CSV column to show
                colorCol: 'Population',
                //value to [0,1] mapping function
                tFun: (value) => gridviz.sExp(Math.min(value / 100000, 1), -15),
            }),
        ]
    )

See the documentation page for more information.

standalone

<script src="https://unpkg.com/gridviz/dist/gridviz.min.js"></script>

Documentation

See the API reference.

About

contributors
version See npm
status Since 2020
license EUPL 1.2

Support and contribution

Feel free to ask support, fork the project or simply star it (it's always a pleasure).

Copyright

The Eurostat NUTS dataset is copyrighted. There are specific provisions for the usage of this dataset which must be respected. The usage of these data is subject to their acceptance. See the Eurostat-GISCO website for more information.

Disclaimer

The designations employed and the presentation of material on these maps do not imply the expression of any opinion whatsoever on the part of the European Union concerning the legal status of any country, territory, city or area or of its authorities, or concerning the delimitation of its frontiers or boundaries. Kosovo*: This designation is without prejudice to positions on status, and is in line with UNSCR 1244/1999 and the ICJ Opinion on the Kosovo declaration of independence. Palestine*: This designation shall not be construed as recognition of a State of Palestine and is without prejudice to the individual positions of the Member States on this issue.

More Repositories

1

searoute

Compute shortest maritime routes between ports
HTML
141
star
2

Nuts2json

Eurostat NUTS dataset as JSON for web mapping
Python
73
star
3

eurostat-map.js

Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.
JavaScript
59
star
4

statistics-coded

Catalogue of resources (R/Python/SQL/SAS/Stata/...) to reproduce the results of Eurostat Statistics Explained articles
Jupyter Notebook
41
star
5

econowcast

Experimental tools (R) for Big Data econometrics nowcasting and early estimates
Gnuplot
31
star
6

eurostat.js

Some reusable Javascript libraries for Eurostat data users and web developers
JavaScript
30
star
7

pyrostat

API (Python) for Eurostat data collections upload
Python
26
star
8

regl-map-animation

Configurable WebGL animation showing a map transitioning into a bar chart
JavaScript
25
star
9

restatapi

An R package to search and retrieve data from Eurostat database using SDMX
R
25
star
10

JGiscoTools

Manipulation of geographical and statistical data in Java, with a focus on Eurostat data
Java
20
star
11

happyGISCO

Simple client (Python) built on top of Eurostat GISCO web-services
Jupyter Notebook
15
star
12

RegionSimplify

Tool to simplify vector geographical datasets representing tesselations, such as administrative regions, land cover areas, etc.
Java
13
star
13

prophet

Application of Facebook Prophet model (Python) for forecasting Eurostat monthly indicators
Jupyter Notebook
12
star
14

GridMaker

Produce grid geometries for statistics. As GIS vector datasets.
Java
11
star
15

README

Some useful information about this site!
11
star
16

NutsDorlingCartogram

Dorling cartogram from NUTS regions with Eurostat statistics
JavaScript
11
star
17

GeoDiff

Analyse differences between two versions of a vector geospatial dataset
Java
11
star
18

EurostatVisu

Few experimental web visualisations of Eurostat data
JavaScript
9
star
19

VTL

The VTL 2.0 (Validation and Transformation Language) interpreter and a simple user interface
Java
9
star
20

pygridmap

Geoprocessing tools (Python) for efficient geometric mapping and set operations over geospatial grids
Jupyter Notebook
9
star
21

quantile

Agnostic (re)implementations (R/SAS/Python/C) of common quantile estimation algorithms.
Python
9
star
22

PRost

Python and R services to access and handle Eurostat data
Jupyter Notebook
8
star
23

correspondenceTables

Functions for creating or updating correspondence tables between two statistical classifications
R
7
star
24

datalab

Mustache
7
star
25

java4eurostat

Multi-dimensional data manipulation and easy access to Eurostat data. In Java.
HTML
7
star
26

udoxy

Guidelines and script (bash) for generic standalone code documentation
Shell
7
star
27

PowerBI-connector

PowerBI custom connector for Eurostat API
6
star
28

basic-services

Healthcare and education services in Europe from a number of official datasources
JavaScript
5
star
29

gridtiler

Tiling tool for gridded data
JavaScript
5
star
30

dff

Promoting the use of a publicly available scanner data set in price index research and for capacity building (R/SAS)
SAS
5
star
31

panelvar

Experimental tools (R) on pVAR models for timely estimates
R
4
star
32

estatNet

Package (Python) for Eurostat online glossaries' web scraping and semantic classification
Python
4
star
33

multimno

Big data pipeline software for mobility and sociodemographic analysis from MNO Data.
Python
4
star
34

oja_hhi

R code to calculate the labour market concentration index using online job advertisement data.
R
4
star
35

PING

Library of macro/function utilities developed (R/SAS/Stata) for the implementation of statistical processes in production environments
SAS
4
star
36

e-learning

Repository to store e-Learning resources from our courses
Jupyter Notebook
3
star
37

ds-course

Training materials for the data science course
Jupyter Notebook
3
star
38

ICW

[obsolete] Codes for experimental statistics on household income, consumption and wealth
3
star
39

flagr

A simple R package to derive flag for aggregates
R
3
star
40

ecobackcast

Experimental tools (R) for back-casting Principal European Economic Indicators
R
3
star
41

ACRO

Automatic Checking of Research Outputs (ACRO)
Stata
3
star
42

gridviz-parquet

Parquet format support for GridViz
JavaScript
3
star
43

leaflet-gridviz

A plugin for Leaflet to show gridviz maps
JavaScript
3
star
44

barcode-generator

JavaScript
2
star
45

gridviz-eurostat

Utilities for using GridViz with Eurostat data, on Europe
JavaScript
2
star
46

NLP4Stat

Jupyter Notebook
2
star
47

d3.examples

Applying d3 framework for handling and exploring (Javascript/Python) Eurostat data and metadata.
HTML
2
star
48

eurostat_latex

LaTeX stylesheet for Eurostat Statistical Working papers
TeX
2
star
49

pyEUDatNat

Basic module (Python) for the automated collection and formatting of raw EU data from national authorities.
Python
2
star
50

vtl-editor

VTL editor based on Monaco
TypeScript
2
star
51

Spatial-KWD

Computing Kantorovich-Wasserstein distances for large spatial maps. Wrappers in Python and R.
C++
2
star
52

mnodata-tee-poc

C++
2
star
53

d3.sunburst

Reusable function to easily create sunburst visualizations based on D3.js
2
star
54

confly

Implementation of disclosure control methods (SAS) for microdata confidentiality on the fly
SAS
2
star
55

euronym

Multi-scale map labels for web mapping applications. For Europe.
Java
2
star
56

emos-codinglab-2024

HTML
2
star
57

OJA_estimation_study

Experimental tools for estimation of Job Vacancies Statistics (JVS) from Online Job Advertisements (OJA).
R
1
star
58

MNO_mobdensity

Supplementary material and code repository for the paper: On the estimation of spatial density from mobile network operator data (arXiv:2009.05410v2)
R
1
star
59

interactive-publication-energy

Releases and source code for the energy publication
JavaScript
1
star
60

Smartdata4MNEs

R
1
star
61

traffic_landscaping

Java
1
star
62

gridviz-smoothing

Gaussian kernel density smoothing for GridViz
JavaScript
1
star
63

trendgraph

JavaScript
1
star
64

ts_clustering

Coding lab with students of the EMOS on time series clustering applied to Population and Migration Official Statistics
R
1
star
65

beamslide

Eurostat layout style/template for LaTeX beamer presentation
TeX
1
star
66

SAE_citystat

Simulation in R for Small Area Estimation (SAE) using the AMELIA dataset
R
1
star
67

bibestat

Eurostat bibliographical footprint
HTML
1
star
68

beeswarm

A library to easily generate beeswarm charts
1
star
69

Copernicus-DEM-viewer

Leaflet viewer for DEMs made available by Copernicus
JavaScript
1
star
70

eubd2023_docs

Documentation of the 2023 EU Big Data hackathon infrastructure
CSS
1
star
71

womenmen-releases

A repository to manage the releases (and probably the source code later) for the women & men digital publication
JavaScript
1
star
72

hicp

Harmonised Index of Consumer Prices
R
1
star