Skip to content

Instantly share code, notes, and snippets.

@akselx
Created March 1, 2013 00:12

Revisions

  1. akselx revised this gist Mar 1, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion inlet.js
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,8 @@ var circles = g.selectAll('circle')
    var attributes={
    "fill":"#A82222",
    "opacity":.3,
    "cy":200
    "cy":200,
    "stroke-width":5
    }
    circles.attr(attributes)

  2. akselx revised this gist Mar 1, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions inlet.js
    Original file line number Diff line number Diff line change
    @@ -7,11 +7,12 @@

    // Select all circles from this page
    var circles = g.selectAll('circle')
    .data([43,22,17])
    //.data([43,31,17])

    var attributes={
    "fill":"#A82222",
    "opacity":.3
    "opacity":.3,
    "cy":200
    }
    circles.attr(attributes)

  3. akselx revised this gist Mar 1, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions _.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    [ <a href="http://tributary.io/inlet/5061323">Launch: INFO 247 - Lab 6 - #1 Selections</a> ] 5061323 by akselx<br>[ <a href="http://tributary.io/inlet/5058838">Launch: INFO 247 - Lab 6 - #1</a> ] 5058838 by poezn<br>
  4. akselx created this gist Mar 1, 2013.
    5 changes: 5 additions & 0 deletions circles.svg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    1 change: 1 addition & 0 deletions config.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    {"description":"INFO 247 - Lab 6 - #1 Selections","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":15},"circles.svg":{"default":true,"vim":false,"emacs":false,"fontSize":15},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":15},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":15}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
    20 changes: 20 additions & 0 deletions inlet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    // School of Information, UC Berkeley
    // INFO 247 Lab 6: D3.js
    // http://blogs.ischool.berkeley.edu/i247s13/lab-6-d3-js/

    // Tributary automatically added the contents of "circles.svg"
    // to this page.

    // Select all circles from this page
    var circles = g.selectAll('circle')
    .data([43,22,17])

    var attributes={
    "fill":"#A82222",
    "opacity":.3
    }
    circles.attr(attributes)

    // YOUR TURN! Change their color

    // YOUR TURN! Change their y position (cy) to 200