value.js 678 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: '#0000ff',
  11. pointBorderWidth: 6
  12. },
  13. {
  14. // option in element (fallback)
  15. data: [4, -5, -10, null, 10, 5],
  16. }
  17. ]
  18. },
  19. options: {
  20. legend: false,
  21. title: false,
  22. elements: {
  23. line: {
  24. fill: false,
  25. },
  26. point: {
  27. borderColor: '#00ff00',
  28. borderWidth: 3,
  29. radius: 10,
  30. }
  31. },
  32. scales: {
  33. xAxes: [{display: false}],
  34. yAxes: [{display: false}]
  35. }
  36. }
  37. },
  38. options: {
  39. canvas: {
  40. height: 256,
  41. width: 512
  42. }
  43. }
  44. };