You are here

README.txt in Flot 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 6 README.txt
CONTENTS OF THIS FILE
---------------------

* Introduction 
* Installation 
* API


INTRODUCTION 
------------

Authors: 
* Jeff Miccolis (jmiccolis)
* Jelle Sebreghts (Jelle_S)
* Peter Droogmans (attiks)

Support was provided by Development Seed and the New America Foundation.

Flot is a javascript graphing library written using the jquery that we all know
and love. This module is designed to make it dead-simple to push data into a
flot graph.


INSTALLATION
------------

1. Copy the flot module directory to your sites/SITENAME/modules directory.

2. Download flot from http://code.google.com/p/flot/

3. Extract it as a sub-directory called 'flot' in the flot module folder. For
example:

 /sites/all/modules/flot/flot/

4. Enable the module at Administer >> Site building >> Modules.


API
---

The main API function is a theme function - theme_flot_graph(). It is designed
to mimic the main $.plot() function that flot provides. Think of it as a php
wrapper. It takes the same arguments in the same order as $.plot and returns
the placeholder element that flot will use to make it's graph. Please refer to
API.txt included in the flot package for more details on how to make flot work.

To get started quickly try the following example:

<?php

$d1 = new flotData(array(array(0, 1), array(4, 8), array(8, 5)));
$d2 = new flotData(array(array(0, 8), array(3, 5), array(8, 0.5)));
print theme('flot_graph', array(), array($d1, $d2));

?>

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Installation
  5. * API
  6. INTRODUCTION
  7. ------------
  8. Authors:
  9. * Jeff Miccolis (jmiccolis)
  10. * Jelle Sebreghts (Jelle_S)
  11. * Peter Droogmans (attiks)
  12. Support was provided by Development Seed and the New America Foundation.
  13. Flot is a javascript graphing library written using the jquery that we all know
  14. and love. This module is designed to make it dead-simple to push data into a
  15. flot graph.
  16. INSTALLATION
  17. ------------
  18. 1. Copy the flot module directory to your sites/SITENAME/modules directory.
  19. 2. Download flot from http://code.google.com/p/flot/
  20. 3. Extract it as a sub-directory called 'flot' in the flot module folder. For
  21. example:
  22. /sites/all/modules/flot/flot/
  23. 4. Enable the module at Administer >> Site building >> Modules.
  24. API
  25. ---
  26. The main API function is a theme function - theme_flot_graph(). It is designed
  27. to mimic the main $.plot() function that flot provides. Think of it as a php
  28. wrapper. It takes the same arguments in the same order as $.plot and returns
  29. the placeholder element that flot will use to make it's graph. Please refer to
  30. API.txt included in the flot package for more details on how to make flot work.
  31. To get started quickly try the following example:
  32. $d1 = new flotData(array(array(0, 1), array(4, 8), array(8, 5)));
  33. $d2 = new flotData(array(array(0, 8), array(3, 5), array(8, 0.5)));
  34. print theme('flot_graph', array(), array($d1, $d2));
  35. ?>