D3.js

    var data = [
        {fruit: "bananas", "percentage": 20},
        {fruit: "apples", "percentage": 45},
        {fruit: "carrots", "percentage": 35}
    ]
    
    var svg = d3.select('.pie-chart')
    //select the svg with a class name instead of 'svg.'
    //select the svg with an ID
        .attr("width", 400)
        .attr("height", 400);    
        
    var radius = 150;      
          
Learn a how to use D3.js.