Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() {
- var doughnutData = [
- {
- value: 48.3,
- color: "#81d7d8",
- highlight: "#23c6c8",
- label: "Accepted"
- },
- {
- value: 20.7,
- color: "#f58894",
- highlight: "#d9534f",
- label: "Denied"
- },
- {
- value: 31,
- color: "#f5c592",
- highlight: "#f8ac59",
- label: "Pending"
- }
- ];
- var doughnutOptions = {
- segmentShowStroke: true,
- segmentStrokeColor: "#fff",
- segmentStrokeWidth: 2,
- percentageInnerCutout: 45, // This is 0 for Pie charts
- animationSteps: 100,
- animationEasing: "easeOutBounce",
- animateRotate: true,
- animateScale: false,
- fullWidth: true
- };
- var ctx = document.getElementById("doughnutChart").getContext("2d");
- var DoughnutChart = new Chart(ctx).Doughnut(doughnutData, doughnutOptions);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement