I'm a beginner when it comes to javascript and D3. I want to create a bubble chart using D3 and I need to get the data from an external file. I've searched for other ways but it looks like nothing works. Does anyone know how can I do it?
function animatedBubbleChart() {
var bubbleChart = new d3.svg.BubbleChart({
supportResponsive: true,
size: 800,
innerRadius: 600 / 3.5,
radiusMin: 50,
data: {
items: [//replace this with data from a json
{text: "2010", count: "170"},
{text: "2011", count: "170"},
{text: "2012", count: "170"},
{text: "2013", count: "170"},
{text: "2014", count: "170"},
{text: "2015", count: "170"},
{text: "2016", count: "170"},
],
eval: function (item) {return item.count;},
classed: function (item) {return item.text.split(" ").join("");}
},
plugins: [
{