Giter Club home page Giter Club logo

2017-spring-week-3-assignment's Introduction

Week 3 Assignment

Exercise 1: A Short Crossfilter Exercise

A recap of some key crossfilter tasks: creating dimensions, grouping by dimension, and group reduce; see lines 21-40 for assignment prompts

Exercise 2: Putting Crossfilter to Work

Part 1

Go to line 92. This block of code demonstrates a basic implementation of d3.brush. A brush is a UI element that allows the user to select and highlight a region, giving the user the ability to create a filtering range.

You are not expected to learn to master brushes yet. Take a look at the example and try to understand its basic implementation. Between lines 110 and 113, write a block of code to update the other charts, based on the results of the filtering operation.

Part 2

The function drawUserType should draw (and update/redraw) a pie chart showing the breakdown of registered vs. casual users. However, as it's currently implemented, it doesn't support updates. This is because the "update/exit" part of the "enter/update/exit" pattern is not implemented. Refractor the code between lines 146-165 to account for this.

Part 3 (Optional)

For extra practice, complete the drawUserGender function.

2017-spring-week-3-assignment's People

Contributors

siqister avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.