indexable-element-options.js 601 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. module.exports = {
  2. config: {
  3. type: 'polarArea',
  4. data: {
  5. labels: [0, 1, 2, 3, 4, 5],
  6. datasets: [
  7. {
  8. // option in element (fallback)
  9. data: [0, 2, 4, null, 6, 8],
  10. }
  11. ]
  12. },
  13. options: {
  14. legend: false,
  15. title: false,
  16. elements: {
  17. arc: {
  18. backgroundColor: 'transparent',
  19. borderColor: '#ff0000',
  20. borderWidth: 5,
  21. borderAlign: [
  22. 'center',
  23. 'inner',
  24. 'center',
  25. 'inner',
  26. 'center',
  27. 'inner',
  28. ]
  29. }
  30. },
  31. scale: {
  32. display: false
  33. }
  34. }
  35. },
  36. options: {
  37. canvas: {
  38. height: 256,
  39. width: 512
  40. }
  41. }
  42. };