fill-line-boundary-origin-stepped-span.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "config": {
  3. "type": "line",
  4. "data": {
  5. "labels": ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
  6. "datasets": [{
  7. "backgroundColor": "rgba(0, 0, 192, 0.25)",
  8. "data": [null, null, 2, 4, 2, 1, -1, 1, 2]
  9. }, {
  10. "backgroundColor": "rgba(0, 192, 0, 0.25)",
  11. "data": [4, 2, null, 3, 2.5, null, -2, 1.5, 3]
  12. }, {
  13. "backgroundColor": "rgba(192, 0, 0, 0.25)",
  14. "data": [3.5, 2, 1, 2.5, -2, 3, -1, null, null]
  15. }, {
  16. "backgroundColor": "rgba(128, 0, 128, 0.25)",
  17. "data": [5, 6, 5, -2, -4, -3, 4, 2, 4.5]
  18. }]
  19. },
  20. "options": {
  21. "responsive": false,
  22. "spanGaps": true,
  23. "legend": false,
  24. "title": false,
  25. "scales": {
  26. "xAxes": [{
  27. "display": false
  28. }],
  29. "yAxes": [{
  30. "display": false
  31. }]
  32. },
  33. "elements": {
  34. "point": {
  35. "radius": 0
  36. },
  37. "line": {
  38. "cubicInterpolationMode": "monotone",
  39. "borderColor": "transparent",
  40. "stepped": true,
  41. "fill": "origin"
  42. }
  43. }
  44. }
  45. },
  46. "options": {
  47. "canvas": {
  48. "height": 256,
  49. "width": 512
  50. }
  51. }
  52. }