indexable.js 768 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. 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. scale: {
  38. display: false,
  39. ticks: {
  40. min: -15
  41. }
  42. }
  43. }
  44. },
  45. options: {
  46. canvas: {
  47. height: 512,
  48. width: 512
  49. }
  50. }
  51. };