Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.onload = function() {
- var chart1 = new CanvasJS.Chart("GraczeOnline", {
- theme: "light2", // "light1", "light2", "dark1", "dark2"
- animationEnabled: true,
- title: {
- text: "Gracze Online"
- },
- data: [{
- type: "pie",
- startAngle: 25,
- toolTipContent: "<b>{label}</b>: {y}%",
- showInLegend: "true",
- legendText: "{label}",
- indexLabelFontSize: 16,
- indexLabel: "{label} - {y}%",
- dataPoints: [
- { y: 51.08, label: "Wolne" },
- { y: 27.34, label: "zajete" },
- ]
- }]
- });
- chart1.render();
- chart1 = {};
- }
- var chart2 = new CanvasJS.Chart("pamiec", {
- theme: "light2", // "light1", "light2", "dark1", "dark2"
- animationEnabled: true,
- title: {
- text: "pamiec"
- },
- data: [{
- type: "pie",
- startAngle: 25,
- toolTipContent: "<b>{label}</b>: {y}%",
- showInLegend: "true",
- legendText: "{label}",
- indexLabelFontSize: 16,
- indexLabel: "{label} - {y}%",
- dataPoints: [
- { y: 51.08, label: "Wolne" },
- { y: 27.34, label: "zajete" },
- ]
- }]
- });
- chart2.render();
- chart2 = {};
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement