bar-thickness-multiple.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "config": {
  3. "type": "bar",
  4. "data": {
  5. "labels": ["2016", "2018", "2020", "2024", "2030"],
  6. "datasets": [{
  7. "backgroundColor": "#FF6384",
  8. "data": [1, null, 3, 4, 5]
  9. }, {
  10. "backgroundColor": "#36A2EB",
  11. "data": [5, 4, 3, null, 1]
  12. }, {
  13. "backgroundColor": "#FFCE56",
  14. "data": [3, 5, 2, null, 4]
  15. }]
  16. },
  17. "options": {
  18. "responsive": false,
  19. "legend": false,
  20. "title": false,
  21. "scales": {
  22. "xAxes": [{
  23. "type": "time",
  24. "display": false,
  25. "barPercentage": 1,
  26. "categoryPercentage": 1,
  27. "ticks": {
  28. "source": "labels"
  29. }
  30. }],
  31. "yAxes": [{
  32. "display": false,
  33. "ticks": {
  34. "beginAtZero": true
  35. }
  36. }]
  37. }
  38. }
  39. },
  40. "options": {
  41. "canvas": {
  42. "height": 256,
  43. "width": 512
  44. }
  45. }
  46. }