Edit in JSFiddle


              
img{
  max-width:100%;
  height:auto;
}
<img src="https://quickchart.io/chart?width=500&height=300&c={type:'bar',data:{labels:['2009','2010','2011','2012','2013'],datasets:[{label:'A',data:[50,60,70,180,190]},{label:'B',data:[100,200,300,400,500]}]}}">