indexable.js 719 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module.exports = {
  2. config: {
  3. type: 'line',
  4. data: {
  5. labels: [0, 1, 2, 3, 4, 5],
  6. datasets: [
  7. {
  8. // option in dataset
  9. data: [0, 5, 10, null, -10, -5],
  10. pointBackgroundColor: '#00ff00',
  11. pointRadius: [
  12. 1, 2, 3, 4, 5, 6
  13. ]
  14. },
  15. {
  16. // option in element (fallback)
  17. data: [4, -5, -10, null, 10, 5],
  18. }
  19. ]
  20. },
  21. options: {
  22. legend: false,
  23. title: false,
  24. elements: {
  25. line: {
  26. fill: false,
  27. },
  28. point: {
  29. backgroundColor: '#ff0000',
  30. radius: [
  31. 6, 5, 4, 3, 2, 1
  32. ],
  33. }
  34. },
  35. scales: {
  36. xAxes: [{display: false}],
  37. yAxes: [{display: false}]
  38. }
  39. }
  40. },
  41. options: {
  42. canvas: {
  43. height: 256,
  44. width: 512
  45. }
  46. }
  47. };