Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Code01_Goog1
Code02_Goog2 Added Chapter 11 Jun 25, 2014
Code03_Goog3 Added Chapter 11 Jun 25, 2014
Code04_line Added Chapter 11 Jun 25, 2014
Code05_plot Added cabal file Jul 6, 2014
Code06_plot3D Added Chapter 11 Jun 25, 2014
Code07_viz1 Added Chapter 11 Jun 25, 2014
Code08_viz2 Added Chapter 11 Jun 25, 2014
Code09_d3box Added Chapter 11 Jun 25, 2014
Code10_d3_plot Added Chapter 11 Jun 25, 2014
Code11_diag Added Chapter 11 Jun 25, 2014
LICENSE Added Chapter 11 Jun 25, 2014
README.md Added Chapter 11 Jun 25, 2014

README.md

Chapter 11

Chapter 11, Stunning Visuals, comprises of sundry approaches to plotting graphs including line charts, bar graphs, scatter plots, and D3.js visualizations.

This is the accompanying source code for Haskell Data Analysis Cookbook. Refer to the book for step-by-step explanations.

Recipes:

  • Code01: Plotting a line chart using Google's Chart API
  • Code02: Plotting a pie chart using Google's Chart API
  • Code03: Plotting bar graphs using Google's Chart API
  • Code04: Displaying a line graph using gnuplot
  • Code05: Displaying a scatter plot of two-dimensional points
  • Code06: Interacting with points in three-dimensional space
  • Code07: Visualizing a graph network
  • Code08: Customizing the looks of a graph network diagram
  • Code09: Rendering a bar graph in JavaScript using D3.js
  • Code10: Rendering a scatter plot in JavaScript using D3.js
  • Code11: Diagramming a path from a list of vectors

How to use

Setting up the environment

Install the Haskell Platform.

$ sudo apt-get install haskell-platform

Alternatively, install GHC 7.6 (or above) and Cabal.

$ sudo apt-get install ghc cabal-install

Running the code

A Makefile is provided in each recipe. Compile the corresponding executable by running make.

$ make

Run the resulting code. For example,

$ ./Code01

To clean up the directory:

$ make clean