Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <script>
  2. window.onload = function() {
  3.  
  4. var chart1 = new CanvasJS.Chart("GraczeOnline", {
  5. theme: "light2", // "light1", "light2", "dark1", "dark2"
  6. animationEnabled: true,
  7. title: {
  8. text: "Gracze Online"
  9. },
  10. data: [{
  11. type: "pie",
  12. startAngle: 25,
  13. toolTipContent: "<b>{label}</b>: {y}%",
  14. showInLegend: "true",
  15. legendText: "{label}",
  16. indexLabelFontSize: 16,
  17. indexLabel: "{label} - {y}%",
  18. dataPoints: [
  19. { y: 51.08, label: "Wolne" },
  20. { y: 27.34, label: "zajete" },
  21. ]
  22. }]
  23. });
  24. chart1.render();
  25. chart1 = {};
  26. }
  27.  
  28. var chart2 = new CanvasJS.Chart("pamiec", {
  29. theme: "light2", // "light1", "light2", "dark1", "dark2"
  30. animationEnabled: true,
  31. title: {
  32. text: "pamiec"
  33. },
  34. data: [{
  35. type: "pie",
  36. startAngle: 25,
  37. toolTipContent: "<b>{label}</b>: {y}%",
  38. showInLegend: "true",
  39. legendText: "{label}",
  40. indexLabelFontSize: 16,
  41. indexLabel: "{label} - {y}%",
  42. dataPoints: [
  43. { y: 51.08, label: "Wolne" },
  44. { y: 27.34, label: "zajete" },
  45. ]
  46. }]
  47. });
  48. chart2.render();
  49. chart2 = {};
  50.  
  51.  
  52.  
  53. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement