2017 © Pedro Peláez
 

symfony-bundle visual-heatmap-bundle

Generates Heatmaps.

image

morgenstille/visual-heatmap-bundle

Generates Heatmaps.

  • Thursday, May 30, 2013
  • by joemoe
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Morgenstille Visual Heatmap Bundle

This Symfony2 bundle provides basic heatmap generation., (*1)

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., (*2)

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, (*3)

    morgenstille_visual_heatmap: resource: "@MorgenstilleVisualHeatmapBundle/Controller/" type: annotation prefix: /, (*4)

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], (*5)

The Versions

30/05 2013

dev-master

9999999-dev

Generates Heatmaps.

  Sources   Download

MIT

The Requires

 

image heatmap visual