web/lib/embed.js
// When page loads - initialize all The Gamma visualizations
When page loads - initialize all The Gamma visualizations
When page loads - initialize all The Gamma visualizations
function loadTheGamma() {
  require.config({
    paths:{'vs':vsRoot},
    map:{ "*":{"monaco":"vs/editor/editor.main"}}
  });
  require(["vs/editor/editor.main", theGammaRoot + "/thegamma.js"], function (_, g) {
    var services = "https://thegamma-services.azurewebsites.net/";
    var gallery = "https://gallery-csv-service.azurewebsites.net/";
    var providers =
      g.providers.createProviders({
        "worldbank": g.providers.rest(services + "worldbank"),
        "libraries": g.providers.library(theGammaRoot + "/libraries.json"),
        "shared": g.providers.rest(gallery + "providers/listing", null, true),
        "web": g.providers.rest(gallery + "providers/data"),
        "people": g.providers.pivot(gallery + "providers/csv/2017-07-22/file_0.csv"),
        "views": g.providers.pivot(gallery + "providers/csv/2017-07-21/file_5.csv"),
        "videos": g.providers.pivot(gallery + "providers/csv/2017-05-29/file_1.csv"),
        "events": g.providers.pivot(gallery + "providers/csv/2017-07-03/file_2.csv"),
        "papers": g.providers.pivot(gallery + "providers/csv/2017-07-04/file_0.csv"),
        "olympics": g.providers.pivot(services + "pdata/olympics"),
        "expenditure": g.providers.rest("https://govuk-expenditure.azurewebsites.net/expenditure"),
        "drwho": g.providers.rest("https://thegamma-graph-service.azurewebsites.net/drWho")
      });
    evalSnippetsAndCreateEditor(g.gamma.createContext(providers));
    if (document.getElementById("explore-ed"))
      createExploreEditor(g.gamma.createContext(providers));
    if (document.getElementById("simple-ed"))
      createSimpleEditor(g.gamma.createContext(providers));
  });
}
function loadTheGamma ( ) { require . config ( { paths : { 'vs' : vsRoot } , map : { "*" : { "monaco" : "vs/editor/editor.main" } } } ) ; require ( [ "vs/editor/editor.main" , theGammaRoot + "/thegamma.js" ] , function ( _ , g ) { var services = "https://thegamma-services.azurewebsites.net/" ; var gallery = "https://gallery-csv-service.azurewebsites.net/" ; var providers = g . providers . createProviders ( { "worldbank" : g . providers . rest ( services + "worldbank" ) , "libraries" : g . providers . library ( theGammaRoot + "/libraries.json" ) , "shared" : g . providers . rest ( gallery + "providers/listing" , null , true ) , "web" : g . providers . rest ( gallery + "providers/data" ) , "people" : g . providers . pivot ( gallery + "providers/csv/2017-07-22/file_0.csv" ) , "views" : g . providers . pivot ( gallery + "providers/csv/2017-07-21/file_5.csv" ) , "videos" : g . providers . pivot ( gallery + "providers/csv/2017-05-29/file_1.csv" ) , "events" : g . providers . pivot ( gallery + "providers/csv/2017-07-03/file_2.csv" ) , "papers" : g . providers . pivot ( gallery + "providers/csv/2017-07-04/file_0.csv" ) , "olympics" : g . providers . pivot ( services + "pdata/olympics" ) , "expenditure" : g . providers . rest ( "https://govuk-expenditure.azurewebsites.net/expenditure" ) , "drwho" : g . providers . rest ( "https://thegamma-graph-service.azurewebsites.net/drWho" ) } ) ; evalSnippetsAndCreateEditor ( g . gamma . createContext ( providers ) ) ; if ( document . getElementById ( "explore-ed" ) ) createExploreEditor ( g . gamma . createContext ( providers ) ) ; if ( document . getElementById ( "simple-ed" ) ) createSimpleEditor ( g . gamma . createContext ( providers ) ) ; } ) ; }
When page loads - initialize all The Gamma visualizations
When page loads - initialize all The Gamma visualizations
// Turing 2016/2017 // shared.'by date'.'May 2017'.'The Alan Turing Institute People (7 May 2017)'