Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Clojure Data Analysis
  • Table Of Contents Toc
Mastering Clojure Data Analysis

Mastering Clojure Data Analysis

By : Eric Richard Rochester
4.2 (5)
close
close
Mastering Clojure Data Analysis

Mastering Clojure Data Analysis

4.2 (5)
By: Eric Richard Rochester

Overview of this book

Table of Contents (17 chapters)
close
close
Mastering Clojure Data Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Visualizing UFO data


We'll spend a good bit of time visualizing the data, and we'll use the same system that we have in the previous chapters: a bit of HTML, a splash of CSS, and a lot of JavaScript, which we'll generate from ClojureScript.

We've already taken care of the configuration for using ClojureScript in the project.clj file that I mentioned earlier. The rest of it involves a couple of more parts:

  • The code to generate the JSON data for the graph. This will be in the src/ufo_data/analysis.clj file. We'll write this code first.

  • An HTML page that loads the JavaScript libraries that we'll use—jQuery (https://jquery.org/) and D3 (http://d3js.org/)—and creates a div container in which to put the graph itself.

  • The source code for the graph. This will include a namespace for utilities in src-cljs/ufo-data/utils.cljs and the main namespace at src-cljs/ufo-data/viz.cljs.

With these prerequisites in place, we can start creating the graph of the frequencies of the different shapes.

First, we need...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Clojure Data Analysis
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon