Radar

雷达图。

Usage

  1. <m-radar id="myRadar" width="600" height="300"
  2. data="{
  3. labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
  4. datasets: [{
  5. label: '# of Votes',
  6. data: [12, 19, 3, 5, 2, 3],
  7. backgroundColor: 'rgba(255, 99, 132, .2)',
  8. borderColor: 'rgb(255, 99, 132)',
  9. borderWidth: 1
  10. }]
  11. }"
  12. options="{
  13. maintainAspectRatio: true,
  14. spanGaps: false,
  15. elements: {
  16. line: {
  17. tension: 0.000001
  18. }
  19. },
  20. plugins: {
  21. filler: {
  22. propagate: false
  23. },
  24. 'samples-filler-analyser': {
  25. target: 'chart-analyser'
  26. }
  27. }
  28. }">
  29. </m-radar>

API

Props

  1. {
  2. data: object,
  3. options: object,
  4. width: number,
  5. height: number
  6. }