Giter Site home page Giter Site logo

New type of Heatmaps about heatmap.js HOT 3 CLOSED

pa7 avatar pa7 commented on May 4, 2024
New type of Heatmaps

from heatmap.js.

Comments (3)

drupol avatar drupol commented on May 4, 2024

Work in progress: http://pol-dev.be/heatmap/

I'm struggling to find a way to make the grid pan correctly, any help is welcome.

from heatmap.js.

pa7 avatar pa7 commented on May 4, 2024

I think this can be easily done by extending heatmap.js' drawAlpha function + reducing datapoint accuracy (probably has to be done in the heatmap-openlayers implementation).
I wrote a small article about getting rid of too much datapoints by reducing accuracy, probably helpful:
http://www.patrick-wied.at/blog/data-clustering-for-a-multiuser-website-heatmap
you would have to get rid of the radial gradients (in drawAlpha), just set the opacity fillstyle and the fillRect should make it

from heatmap.js.

drupol avatar drupol commented on May 4, 2024

No, I think the problem is more complicated (or maybe I don't get your explanations ?).

Let's stay that we want to divide the canvas by square of 20px width.

We need to find the 'distribution' of all the features into this grid.

The distribution means for me:
At row 1, column 3, we have 3 features.
At row 3, column 7, we heave 8 features,
etc etc etc
Then, once the distribution is done, we have to colorize the squares and set the right opacity according to the number of features into it.

I'm almost there with the demonstration up there, it's just that I can't find a way to make the grid pan with the layer behind it and I cannot cover the whole canvas with the grid (only when panning).

It looks easy but I don't think it is.
That kind of grid could be very helpful because it would requires less CPU, and that's interesting ! And the result is also very nice.

I'm looking forward for your reply.

from heatmap.js.

Related Issues (20)

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.