score:2

Accepted answer

Just create a JSON file with this structure:

[{
    "category": "ACC",
    "measure": 0.30
}, {
    "category": "B56",
    "measure": 0.25
}, {
    "category": "MAB",
    "measure": 0.15
}]

And use d3.json:

d3.json("data.json", function(dataset){
    //code here
});

Here is a plunker showing it: https://plnkr.co/edit/OUjPNY3W2aXXCSxvm4tZ?p=preview


Related Query

More Query from same tag