doughnut-weight.json 1.2 KB

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