Coder Social home page Coder Social logo

choropleth's Introduction

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Usage
  • Todo's
  • Contrib js Libraries

Introduction

This module provides a choropleth map view for the the recline field provided by recline module.

It ties a field in the uploaded file (i.e. state) to shapes provided by a GeoJSON file. Then it colors those shapes by comparing values in a second field (e.g. number of drug related deaths). It also provides UI to interactively filter the data through Year and Category columns (if present in the data).

It was originally built to extend display options provided by the DKAN Drupal Distribution, to be embedded in other websites. See live examples here:

Requirements

Installation

Enable the choropleth module, either through the admin UI or with drush.

Configuration

There's no actual Drupal configuration you need to set to get the functionality provided by this module.

Usage

1. Go to the edit/add page for a node that has a recline field (e.g. in DKAN
   add/edit a "resource" node).
2. Upload a CSV file with a 'State' column present in the header.
3. States Map: Check the states map checkbox.
4. (optional) Map Data: Specify the data column you are going to use as the source for
   the coloring. If the administrator does not provide one, UI to select the
   column will be provided for the end-user (if there's more than one column available).
5. (optional) Color Breakpoints: Specify a set of breakpoints separated by commas to be the
   color scale. e.g: 10, 20, 50, 100, 500. If the administrator does not
   provide this, the system will generate its own color breakpoints.
6. (optional) Color Scale: Specify one of the provided color scales for the polygons.
7. Save and enjoy your choropleth map!

Contrib js Libraries

Contrib Libraries used:

choropleth's People

Contributors

bryanbraun avatar nfitzsimmons avatar swirtsjw avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.