Coder Social home page Coder Social logo

go-heatmapper's Introduction

Heatmapper

This is a fork of the go-heatmaps project but with the addition of 2 features that break the API:

  • Ability to specify extent of the heatmap using the same coordinate sytem as the input points
  • Support for weighted points

Heatmaps

This is a toolkit for creating heatmaps. Heatmaps are awesome. I use them for a few things, and now you can, too.

There are quite a few things you can do here and they don't all have the high level documentation they deserve currently. You can start by looking at the example to get a feel for what you can do. Basically, feed in a bunch of x,y type data and get back a heatmap. Awesome.

Here's an example from a real-live report:

Northeast US

Colors

Colors are always the hardest part, so I attempted to make it easy by providing three things:

Predefined Color Schemes

gheat has a set of colors that are available by default under the schemes subpackage. You can preview them in their documentation and use them directly.

Drawing Color Schemes

The schemes subpackage also has a tool for generating a color scheme from an image. Given an image that looks like this:

Alpha Fire Scheme

You can use schemes.FromImage("/path/to/file") to load it and use it directly. Colors near the bottom are for sparsely populated areas and colors near the top are for areas that are densely populated.

Computing Color Schemes

You can also compute a color scheme from spec using schemes.Build. This lets you specify starting and ending colors across multiple segments. Fun away!

go-heatmapper's People

Contributors

dustin avatar clawconduce avatar davidreynolds avatar

Watchers

James Cloos 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.