Skip to content
CityAM
Main navigation
  • News
    • News
      • Latest Business News
      • Economics
      • Politics
      • Tech
      • Banking
      • FTSE 100 Live
      • Retail
      • Insurance
      • Legal
      • Property
      • Transport
      • Markets
    • From our partners
      • AON
      • Bayes Business School
      • Canada BIDs
      • Central London Alliance CIC
      • Destination City
      • Halkin
      • Olympia
      • Inside Saudi
      • Tottenham Hotspur Stadium
      • Santander X
      • YEAR SIX Dividend
    • Featured

      My ride in a helicopter over London as Leonardo expands its UK presence

      Helicopter flying over urban landscape during daylight, showcasing cityscape and modern infrastructure for news report.

      Submit a story

      Tell us your story.

      Submit
  • Opinion
  • Sport
    • Latest Sports News
      • Sport
      • Sport Business
    • From our partners
      • The Morning Briefing: SBS x CityAM
      • Aramco Team Series
      • LIV Golf
    • Featured

      2026 World Cup: England only attract half as many bets as Norway to lift trophy

      Breaking news concept with digital globe and financial charts, signifying global economy and stock market trends.

      Submit a story

      Tell us your story.

      Submit
  • Life&Style
    • Life&Style
      • Life&Style
      • Toast the City Awards
      • The Magazine
      • Travel
      • Culture
      • Motoring
      • Wellness
      • The RED BULLETiN
      • Do it with Shared Ownership
      • Media Speak Hub
    • Featured

      Old Pulteney releases 50-year-old whisky for 200th anniversary

      Old Pulteney 50-Year-Old single malt Scotch whisky bottle with elegant packaging on display, highlighting luxury and craft...

      Submit a story

      Tell us your story.

      Submit
  • Investec
  • Events
  • Latest Paper
Wednesday 13 May 2015 9:22 am

asylum test

By: Billy Ehrenberg

Add as a preferred source on Google

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

var parseDate = d3.time.format("%b %Y").parse, bisectDate = d3.bisector(function(d) { return d.date; }).left;

var x = d3.time.scale().range([0, width]); var y = d3.scale.linear().range([height, 50]);

var area = d3.svg.area() .x(function(d) { return x(d.date); }) .y0(height) .y1(function(d) { return y(d.rate); })

var line = d3.svg.line() .x(function(d) { return x(d.date); }) .y(function(d) { return y(d.rate); }) .defined(function(d) { return d.rate; });

var xAxis = d3.svg.axis() .scale(x) .orient("bottom") .ticks(7) .outerTickSize([0]) .innerTickSize([6]);

var yAxis = d3.svg.axis() .scale(y) .orient("left") .ticks(3) .outerTickSize([0]) .innerTickSize([0]);

d3.csv("https://cityam.go-vip.net/wp-content/uploads/2015/05/dataforasylum3-5553570eea9e4.csv", type, function(error, data) {

// Nest data by region. var regions = d3.nest() .key(function(d) { return d.region; }) .entries(data);

// Compute the maximum rate per region, needed for the y-domain. regions.forEach(function(s) { s.maxrate = d3.max(s.values, function(d) { return d.rate; }); });

// Compute the minimum and maximum date across regions. // We assume values are sorted by date. x.domain([ d3.min(regions, function(s) { return s.values[0].date; }), d3.max(regions, function(s) { return s.values[s.values.length - 1].date; }) ]);

// Add an SVG element for each region, with the desired dimensions and margin. var multipleEnter = d3.select("#cam-d3-euroasylum").selectAll("svg") .data(regions) .enter() .append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")");

// Add the line path elements. Note: the y-domain is set per element. multipleEnter.append("path") .attr("class", "line") .attr("d", function(d) { y.domain([-0, 16695]); return line(d.values) }) .style("stroke", function(d) { var current = d.values[d.values.length - 1].rate; if (current d1.date - x0 ? bisectIndex : bisectIndex - 1; } return d.values[bisectIndex] } } });

function type(d) { d.rate = +d.rate; d.date = parseDate(d.date); return d; }

Share this article

  • Facebook
  • X
  • LinkedIn
  • WhatsApp
  • Email

Similarly tagged content:

Sections

  • News

Categories

  • Business

Trending Articles

  • As it happened: FTSE 100 relief rally runs out of steam as BP and Shell weigh; Oil hits three-month low

  • Rathbones to suspend thousands of client account inflows after FCA probe deals £530m blow

  • Rolls-Royce shares surge as SMR unit bags multi-billion pound Swedish nuclear contract

  • More Big Four blues as Deloitte plans to slash UK audit roles

  • London Tech Week sums up everything wrong with UK tech

More from CityAM

  • New London rooftop bar will be biggest ever with 1,000 capacity

    Life&Style
    Freight Brixton rooftop bar in New London with city skyline views, modern decor, and patrons enjoying cocktails at sunset
  • King’s Speech: Under Labour, Britain looks like a bad bet

    Opinion
    King delivering an impactful speech at a formal event, addressing a captivated audience, symbolizing leadership and author...
  • TfL decommissions Oxford Circus air conditioning despite sweltering heat

    Transport & Infrastructure
    Nationwide found that 60 per cent of Londoners use trains or the Tube every week.
  • Forget non-doms, it’s the British founder exodus that matters

    Opinion
    Commercial airplane flying in clear blue sky, representing aviation news and current trends in the airline industry.
  • Specialist tech recruiter sees hiring slump across UK and Europe

    Tech
    Skyline of Canada financial district with modern skyscrapers and historic landmarks under a clear blue sky
  • Andy Burnham commits to triple lock despite backlash over ‘unsustainable’ policy

    Politics
    Andy Burnham speaking to supporters during his campaign to re-enter UK parliament, engaging with the public in outdoor set...
  • ‘Don’t feel great’: Treasury minister irked by Darren Jones and Mandelson texts

    Politics
    Darren Jones speaking at a conference podium, addressing business professionals, dressed in a formal suit and tie.
  • Kinswoman to take the honours in Dash for glory

    Sport
    Getty Images logo on a building facade, representing the companys influence in global visual media and stock photography i...

CityAM Canada — business, markets and opinion for Canadian readers.

Sections

  • Business
  • Markets
  • Tech
  • AI
  • Economics
  • Opinion
  • Cities

Company

  • About
  • Contact

Legal

  • Terms of Use
  • Privacy Policy
  • Cookie Policy
© 2026 CityAM Canada. All rights reserved.
Terms · Privacy · Cookies