Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <xsl:variable name="js"><![CDATA[
  2. jQuery(function(){
  3. require(['https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.6/Chart.js'])
  4. var ctx = document.getElementById("myChart");
  5. var myChart = new Chart(ctx, {
  6. type: 'pie',
  7. data: {
  8. labels: [],
  9. datasets: [{
  10. data: [42, 8, 50],
  11. backgroundColor: [
  12. "#ed6a47",
  13. "#faae53",
  14. "#ffd5a3",
  15. ],
  16.  
  17. borderWidth: 0
  18. }]
  19. },
  20. options: {
  21. cutoutPercentage: 50,
  22. responsive: false,
  23.  
  24. }
  25. });
  26. });
  27. ]]>
  28. </xsl:variable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement