Skip to content

A wrapper around the Google Visualization API to support overlaying multiple data sets.

License

Notifications You must be signed in to change notification settings

mvdavid7/google-viz-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-viz-plus

A wrapper around the Google Visualization API to support overlaying multiple data sets.

// Create your graph by specifying the DIV and title
var graph = new gvizPlus.Graph('awesomeGraphDiv', 'Google Viz Plus Graph');

// Set any properties
graph.width = window.innerWidth - 50;
graph.height = window.innerHeight;

// Initialize the dataset
var dataSet = new gvizPlus.DataSet(hAxis);

// Set your own colors if you don't like the defaults
//dataSet.setColors([...]);

// Grouping lines by categories
dataSet.addCategory('Chart 1 Category', [lineA, lineB], set1Rows);
dataSet.addCategory('Chart 2 Category', [lineC, lineD, lineE], set2Rows);

// You can even group lines in different axes
dataSet.addAxis('Axis 1', [lineA, lineC, lineD]);
dataSet.addAxis('Axis 2', [lineB]);

// Then render
graph.draw(dataSet);

About

A wrapper around the Google Visualization API to support overlaying multiple data sets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published