indexable.js 711 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module.exports = {
  2. config: {
  3. type: 'radar',
  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: '#00ff00',
  11. pointRadius: [
  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. backgroundColor: '#ff0000',
  30. radius: [
  31. 6, 5, 4, 3, 2, 1
  32. ],
  33. }
  34. },
  35. scale: {
  36. display: false,
  37. ticks: {
  38. min: -15
  39. }
  40. }
  41. }
  42. },
  43. options: {
  44. canvas: {
  45. height: 512,
  46. width: 512
  47. }
  48. }
  49. };