Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irfan Nadiadi - Learning Challenge Week 1 #8

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
# Name

write-your-name
Irfan Nadiadi

# How many points have you earned?

0/100
100/100

(Make your own calculation and replace the number 0 with the points you think you've earned.)

# Show and tell (5 points)

[title-of-the-article](http://link-to-an-interesting-news-article-about-big-data)
[Science's Big Data Problem](http://www.wired.com/2014/08/sciences-big-data-problem/)

# Splunk

## Checkpoint 1 (10 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/qb3d4Gn.png)

## Checkpoint 2 (10 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/QFnhXqt.png)

# D3

## Checkpoint 1 (10 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/8YHNEHe.png)

## Checkpoint 2 (10 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/eZ9neia.png)

## Study Questions (5 points x 3 = 15 points)

### Q1. (5 points)

fill-in-your-answer
Each data point is now an object rather than a number and the data heading represents the key for each key:value pair in the object. As a result, changing the heading in the data will break the javascript code since the data is no longer mapped to the key it was expecting. Changing the heading 'value' to 'count' would require that you change all places in the code referencing 'd.value' to 'd.count'.

### Q2. (5 points)

fill-in-your-answer
One of the primary benefits of using D3 over other tools is that it allows for visualizations to be dynamic, where tools such as Excel create static graphs. This is powerful because, once a visualization for a dataset is created (assuming the data is hosted online), new data can be added to the dataset at a later date and the visualization will automatically reflect the change.

### Q3. (5 points)

fill-in-your-answer
The second argument of d3.tsv is a property accessor. In this example, we define a method type() to coerce the data type from the file we're reading to be a number since it's passed in as a string.


## Challenge 1 (5 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/BQOd4wQ.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/)

## Challenge 2 (5 points x 7 = 35 points)

### a.

![image](image.png?raw=true)
![image](http://i.imgur.com/c7ttWY1.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/1/)

### b.

![image](image.png?raw=true)
![image](http://i.imgur.com/a5LZ34b.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/2/)

### c.

![image](image.png?raw=true)
![image](http://i.imgur.com/LjJNBE6.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/3/)

### d.

![image](image.png?raw=true)
![image](http://i.imgur.com/PEcB4o9.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/4/)

### e.

![image](image.png?raw=true)
![image](http://i.imgur.com/OceYEYC.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/5/)

### f.

![image](image.png?raw=true)
![image](http://i.imgur.com/duxGNbD.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/6/)


### g.

![image](image.png?raw=true)
![image](http://i.imgur.com/clycMlJ.png)

[JSFiddle Link](http://jsfiddle.net/replace-this-path)
[JSFiddle Link](http://jsfiddle.net/Irfann/haad34wa/7/)