value.js 698 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. pointRotation: 90
  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. pointStyle: 'line',
  29. radius: 10,
  30. rotation: 0,
  31. }
  32. },
  33. scales: {
  34. xAxes: [{display: false}],
  35. yAxes: [{display: false}]
  36. }
  37. }
  38. },
  39. options: {
  40. canvas: {
  41. height: 256,
  42. width: 512
  43. }
  44. }
  45. };