rrdFlot module


The rrdFlot Javascript module implements a class used to represents a RDD archive as a Flot plot.


Overview

This module provide a single class: rrdFlot.

Given a RRDFile object, this class creates an interactive Flot plot.

In order to use this module, you also need to include:

Class rrdFlot

The rrdFlot constructor has three arguments:

Argument

Description

html_id

ID of a HTML element, possibly a DIV.

rrd_file

An object of type RRDFile, or equivalent.

graph_options

Graphing options.

The default graphing options are:

  graph_options = {
    legend: {position:"nw",noColumns:3},
    yaxis: { autoscaleMargin: 0.20},
  };

Once instatiated, the object will automatically dra the plot and handle user interaction.