indexable.js 776 B

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