morgenstille/visual-heatmap-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Generates Heatmaps.

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-05-30 21:18 UTC

This package is not auto-updated.

Last update: 2020-08-16 18:32:43 UTC


README

This Symfony2 bundle provides basic heatmap generation.

It consists of several parts

  • The Service - generates the Heatmap Object
  • Renderer - provide different value map to image transformations
  • Spot - maps a peak on the value map.
  • Heatmap - the heatmap object does all the hard work.

Install

  • The bundle is on packagist. Add "morgenstille/visual-heatmap-bundle": "master" to your composer.json.

  • Add the ``new Morgenstille\Visual\HeatmapBundle\MorgenstilleVisualHeatmapBundle(),``` to your AppKernel.php.

  • If you want the demos update your routing.yml

    morgenstille_visual_heatmap: resource: "@MorgenstilleVisualHeatmapBundle/Controller/" type: annotation prefix: /

Usage

  • Get your Heatmap $heatmap = $this->get('morgenstille.visual.heatmap')->create($width, $height);.
  • Add a spot $heatmap->add(new SpotInterpolate($x, $y, $radius, $intensity));
  • Render Png Response $heatmap->renderPngResponse(new TransparentRenderer($heatmap->getMinValue(), $heatmap->getMaxValue()));

Examples

Look at the demo controller [https://github.com/joemoe/visual-heatmap/blob/master/Controller/DemoController.php]