value.js 659 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: '#0000ff',
  11. pointRadius: 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. backgroundColor: '#00ff00',
  28. radius: 3,
  29. }
  30. },
  31. scales: {
  32. xAxes: [{display: false}],
  33. yAxes: [{display: false}]
  34. }
  35. }
  36. },
  37. options: {
  38. canvas: {
  39. height: 256,
  40. width: 512
  41. }
  42. }
  43. };