float-bar-horizontal.json 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. "ticks": {
  24. "min": -8,
  25. "max": 12
  26. }
  27. }],
  28. "yAxes": [{
  29. "display": false
  30. }]
  31. }
  32. }
  33. },
  34. "debug": false,
  35. "options": {
  36. "canvas": {
  37. "height": 256,
  38. "width": 512
  39. }
  40. }
  41. }