value.js 651 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: '#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. scale: {
  32. display: false,
  33. ticks: {
  34. min: -15
  35. }
  36. }
  37. }
  38. },
  39. options: {
  40. canvas: {
  41. height: 512,
  42. width: 512
  43. }
  44. }
  45. };