var json = {"nodes":[{"id":"person1","name":"John Lydgate","type":"person","color":"darkred","url_color":"cyan","link":"http:\/\/dx.doi.org\/10.1093\/ref:odnb\/17238"},{"id":"work13","name":"Exposition of the Pater Noster","type":"work","color":"midnightblue","url_color":null,"link":null},{"id":"witness2","name":"Q.G.8","type":"witness","color":"green","url_color":"aliceblue","link":null},{"id":"witness4","name":"Harley 2255","type":"witness","color":"green","url_color":"aliceblue","link":null},{"id":"witness5","name":"Laud misc. 683","type":"witness","color":"green","url_color":"aliceblue","link":null},{"id":"multiple_author_work183","name":"Upon the cross nailed was I for thee","type":"multiple_author_work","color":"mistyrose","url_color":"aliceblue","link":null},{"id":"person5","name":"Anonymous","color":"darkred","url_color":"aliceblue","link":null},{"id":"other_work185","name":"Katherine with glorious Margaret","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"person7","name":"Benedict Burgh","color":"darkred","url_color":"aliceblue","link":null},{"id":"other_work186","name":"Cato Major","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work142","name":"A lamentacioun of our lady Maria","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work83","name":"The Testament of John Lydgate","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work6","name":"Misericordias Domini in Eternum Cantabo","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work11","name":"Song of Vertu","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work17","name":"Fifteen Joys and Sorrows of Our Lady","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work18","name":"Prayers to Ten Saints","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work42","name":"Letabundus","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work46","name":"Having a conceit in my simple wit","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work49","name":"Consulo quisque eris","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work60","name":"Midsomer Rose","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work67","name":"A Praise of Peace","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work77","name":"Stans Puer ad Mensam","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work79","name":"Fifteen O's of Christ","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work98","name":"A dyte of womenhis hornys","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work102","name":"Queen of heaven of hell eke empress","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work104","name":"Rest and refuge to folk disconsolate","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work116","name":"On the Mutability of Man's Nature due to the Seasons, the Elements, the Complexions, and the Planets","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work121","name":"Verses on the Kings of England","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work132","name":"Thou heavenly Queen of grace our lodestar","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work136","name":"Look in thy merour and deeme noon othir wiht","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work143","name":"A Doctryne for Pestilence","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work145","name":"Ye Briton Martyrs famous in perfectness","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work146","name":"Ye devout people which have observance","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work128","name":"Dietary","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"multiple_author_work185","name":"Katherine with glorious Margaret","type":"multiple_author_work","color":"mistyrose","url_color":"aliceblue","link":null},{"id":"other_work230","name":"Benedicta sit sancta Trinitas","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"other_work231","name":"My fair lady so fresh of hue","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work39","name":"Benedictus deus in donis suis","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work40","name":"Deus in Nomine Tuo saluum me Fac","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work43","name":"Ave Iesse Virgula","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work51","name":"Fabula duorum mercatorum","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work62","name":"Legend of St. Austin at Compton","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work66","name":"Mesour is Tresour","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work97","name":"Life of St. Giles","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work99","name":"Gloriosa Dicta sunt de Te","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work101","name":"Put out his head list not for to dare","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work105","name":"Right mighty Prince and it be your will","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work158","name":"The Fifftene Tokyns aforn the Doom","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work126","name":"Fall of Princes","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work224","name":"Te deum Laudamus To the Lord sovereign","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work152","name":"Hail holy Ositha maid of great virtue","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work225","name":"This wide world is so large of space","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work226","name":"Toward Aurora in the month of December","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work227","name":"Timor mortis conturbat me","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work228","name":"Some man goeth still of wisdom and reason","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work229","name":"God is myn Helpere","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work187","name":"A prayer to St. Edmund","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_work181","name":"Early on morrow and toward night also","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"other_work182","name":"A babe is born our bliss to bring","type":"other_work","color":"khaki","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work1","name":"A Satyrical Ballad against Jack Hare","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work31","name":"Guy of Warwick","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work59","name":"The Miracles of St. Edmund","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work65","name":"Complaint \u00feat Crist maketh of his Passioun","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work81","name":"O blessed Robert innocent and virgin","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work85","name":"Eight Verses of St. Bernard","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work86","name":"O star of Jacob glory of Israel","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work115","name":"The Order of Fools","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work147","name":"Interpretacio Misse","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work151","name":"Blessed Gabriel which broughtest first tiding","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work159","name":"Blessed Thomas rubified with blood","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"other_Lydgate_work154","name":"A prayere to seynt Michaell","type":"other_Lydgate_work","color":"cornflowerblue","url_color":"aliceblue","link":""},{"id":"location2","name":"Jesus College","type":"location","color":"gold","url_color":"aliceblue","link":null},{"id":"location3","name":"British Library","type":"location","color":"gold","url_color":"aliceblue","link":null},{"id":"location4","name":"Bodleian Library","type":"location","color":"gold","url_color":"aliceblue","link":null},{"id":"city1","name":"London","type":"city","color":"darkslategrey","url_color":"aliceblue","link":null},{"id":"city3","name":"Cambridge","type":"city","color":"darkslategrey","url_color":"aliceblue","link":null},{"id":"city4","name":"Oxford","type":"city","color":"darkslategrey","url_color":"aliceblue","link":null},{"id":"region3","name":"Greater London","type":"region","color":"magenta","url_color":"aliceblue","link":null},{"id":"region4","name":"Cambridgeshire","type":"region","color":"magenta","url_color":"aliceblue","link":null},{"id":"region5","name":"Oxfordshire","type":"region","color":"magenta","url_color":"aliceblue","link":null},{"id":"country1","name":"United Kingdom","type":"country","color":"orange","url_color":"aliceblue","link":null},{"id":"edition8","name":"John Lydgate: The Minor Poems, Vol. I: Religious Poems. EETS e.s. 107","type":"edition","color":"indigo","url_color":"aliceblue","link":null},{"id":"edition18","name":"Eine religi\u00f6se Gedichte John Lydgates","type":"edition","color":"indigo","url_color":"aliceblue","link":null}]};
var listTypes = d3.set(json.nodes.reduce(function(result, d){if(d.type){result.push(d.type)}return result;},[])).values();
console.log(listTypes)
<script src="https://d3js.org/d3.v4.min.js"></script>