Frappe Charts Percentage bug v1.0.0

Resize RESULT window to see the problem.

by Mladen Mihajlovic

HTML

<script src="https://unpkg.com/[email protected]/dist/frappe-charts.min.iife.js"></script>
<html>
<body>
<!-- Charts -->
  <p>
  Hello
  </p>
  <div class='row'>
    <div class='col' id='dayofweek'></div>
  </div>
</body>
</html>

JavaScript

// DAYOFWEEK
		var data = {
			labels: ["Monday","Tuesday","Wednesday","Thursday",],
			datasets: [
			  {
				name: "Signups each Day of the Week",
				values: [1,2,3,4]			  }
			]
		  };
		  var dayofweekchart = new Chart("#dayofweek",{
			title: "Signups by Day of the Week (Monday - Sunday)",
			data: data,
			type: 'pie', // or ''bar', line', 'scatter', 'pie', 'percentage'
			height:300,
			colors: ['light-blue','#007BFF'] 
		  });