float-bar-stacked-horizontal.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "config": {
  3. "type": "horizontalBar",
  4. "data": {
  5. "labels": ["2030", "2034", "2038", "2042"],
  6. "datasets": [{
  7. "backgroundColor": "#FF6384",
  8. "data": [11, [6,2], [-4,-7], -2]
  9. }, {
  10. "backgroundColor": "#36A2EB",
  11. "data": [[1,2], [3,4], [-2,-3], [1,4]]
  12. }, {
  13. "backgroundColor": "#FFCE56",
  14. "data": [[0,1], [1,2], [-2,-1], [1,-7]]
  15. }]
  16. },
  17. "options": {
  18. "title": false,
  19. "legend": false,
  20. "scales": {
  21. "xAxes": [{
  22. "display": false,
  23. "stacked": true
  24. }],
  25. "yAxes": [{
  26. "display": false,
  27. "stacked": true,
  28. "ticks": {
  29. "min": -8,
  30. "max": 12
  31. }
  32. }]
  33. }
  34. }
  35. },
  36. "debug": false,
  37. "options": {
  38. "canvas": {
  39. "height": 256,
  40. "width": 512
  41. }
  42. }
  43. }