pie-weight.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "config": {
  3. "type": "pie",
  4. "data": {
  5. "datasets": [
  6. {
  7. "data": [ 1, 1 ],
  8. "backgroundColor": [
  9. "rgba(255, 99, 132, 0.8)",
  10. "rgba(54, 162, 235, 0.8)"
  11. ],
  12. "borderWidth": 0
  13. },
  14. {
  15. "data": [ 2, 1 ],
  16. "hidden": true,
  17. "borderWidth": 0
  18. },
  19. {
  20. "data": [ 3, 3 ],
  21. "weight": 3,
  22. "backgroundColor": [
  23. "rgba(255, 206, 86, 0.8)",
  24. "rgba(75, 192, 192, 0.8)"
  25. ],
  26. "borderWidth": 0
  27. },
  28. {
  29. "data": [ 4, 0 ],
  30. "weight": 0,
  31. "borderWidth": 0
  32. },
  33. {
  34. "data": [ 5, 0 ],
  35. "weight": -2,
  36. "borderWidth": 0
  37. }
  38. ],
  39. "labels": [ "label0", "label1" ]
  40. },
  41. "options": {
  42. "legend": false,
  43. "title": false
  44. }
  45. },
  46. "options": {
  47. "canvas": {
  48. "height": 500,
  49. "width": 500
  50. }
  51. }
  52. }