indexable.js 737 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. pointBorderColor: '#00ff00',
  11. pointBorderWidth: [
  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. borderColor: '#ff0000',
  30. borderWidth: [
  31. 6, 5, 4, 3, 2, 1
  32. ],
  33. radius: 10
  34. }
  35. },
  36. scales: {
  37. xAxes: [{display: false}],
  38. yAxes: [{display: false}]
  39. }
  40. }
  41. },
  42. options: {
  43. canvas: {
  44. height: 256,
  45. width: 512
  46. }
  47. }
  48. };