[ Launch: - ] 4696173 by antulik
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var width = 960, | |
height = 960, | |
format = d3.format(",d"); | |
var pack = d3.layout.pack() | |
.size([width - 4, height - 4]) | |
.padding(10) | |
.value(function(d) { return d.size; }); | |
var vis = d3.select("#chart").append("svg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var csv_url = "/proj-pop-age-all-series-qld.csv"; | |
d3.csv(csv_url, function(a) { | |
a.forEach(function(el){ | |
el.year = parseInt(el.year) | |
el.age = parseInt(el.age) | |
el.low = parseInt(el.low) | |
el.medium = parseInt(el.medium) | |
el.high = parseInt(el.high) | |
}) |
[ Launch: martix_heat ] 4743731 by antulik
[ Launch: mouse_circle ] 4744183 by antulik
[ Launch: matrix_bubble ] 4744253 by antulik
[ Launch: force_example ] 4744347 by antulik
My appologies for the delay to publish this. These are few references I would like to recommend for D3.js
Absolutely the best resource which covers the core things. My workshop at CampJS was based on it. http://bost.ocks.org/mike/d3/workshop/
First part of CampJS talk - D3 mindblow http://www.slideshare.net/antonkatunin/mindblow
Workshop slides, however I would recommend workshop from Mike Bostock above.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProfilesController < ApplicationController | |
def index | |
@tracking_profiles = current_user.tracking_profiles | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OLD | |
context 'when token is expired' do | |
let!(:user) { create :user, discord_token_expired: true } | |
context 'when token refresh successful' do | |
let(:response) { build(:discord_refresh_token_response) } | |
before do | |
stub_request(:post, "https://discordapp.com/api/v6/oauth2/token") | |
.to_return(body: response.to_json) |