text: window.onload = function () {
  	var chart = new CanvasJS.Chart("chartContainer", {
  		title:{
  			text: "My First Chart in CanvasJS"              
  		},
  		data: [              
  		{
  			// Change type to "doughnut", "line", "splineArea", etc.
  			type: "doughnut",
  			dataPoints: [
  				{ label: "apple",  y: 10  },
  				{ label: "orange", y: 15  },
  				{ label: "banana", y: 25  },
  				{ label: "mango",  y: 30  },
  				{ label: "grape",  y: 28  }
  			]
  		}
  		]
  	});
  	chart.render();
  };
  
  var data = [30, 86, 168, 281, 303, 365];
  
  
  d3.select(".chart")
    .selectAll("div")
    .data(data)
      .enter()
      .append("div")
      .style("width", function(d) { return d + "px"; })
      .text(function(d) { return d; })
  ;
  