PolarAreaChartPolar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.

PolarArea - 图1

View on GitHub

  • polarareachartdemo.ts
  • polarareachartdemo.html

    polarareachartdemo.ts

  1. export class PolarAreaChartDemo {
  2. data: any;
  3. constructor() {
  4. this.data = {
  5. datasets: [{
  6. data: [
  7. 11,
  8. 16,
  9. 7,
  10. 3,
  11. 14
  12. ],
  13. backgroundColor: [
  14. "#FF6384",
  15. "#4BC0C0",
  16. "#FFCE56",
  17. "#E7E9ED",
  18. "#36A2EB"
  19. ],
  20. label: 'My dataset'
  21. }],
  22. labels: [
  23. "Red",
  24. "Green",
  25. "Yellow",
  26. "Grey",
  27. "Blue"
  28. ]
  29. }
  30. }
  31. }
  32.  

polarareachartdemo.html

  1. <p-chart type="polarArea" [data]="data"></p-chart>
  2.