This commit is contained in:
string 2025-10-29 16:14:45 +05:30
parent 02b82fcaf8
commit e0bd888c45
2 changed files with 28 additions and 1 deletions

View File

@ -279,10 +279,11 @@
</div>
</div>
<div style="position: relative; height: calc(100% - 50px);">
<div style="position: relative; height: calc(100% - 80px); padding: 0 10px 30px 10px;">
<canvas baseChart
[datasets]="polarAreaChartData"
[labels]="polarAreaChartLabels"
[options]="polarAreaChartOptions"
[type]="polarAreaChartType"
(chartHover)="chartHovered($event)"
(chartClick)="chartClicked($event)">

View File

@ -90,6 +90,32 @@ export class PolarChartComponent implements OnInit, OnChanges {
{ data: [ 300, 500, 100, 40, 120 ], label: 'Series 1'}
];
public polarAreaChartOptions: any = {
responsive: true,
maintainAspectRatio: false,
layout: {
padding: {
left: 10,
right: 10,
top: 10,
bottom: 30
}
},
plugins: {
legend: {
display: true,
position: 'top'
}
},
scales: {
r: {
ticks: {
backdropColor: 'rgba(0, 0, 0, 0)'
}
}
}
};
public polarAreaChartType: string = 'polarArea';
// Multi-layer drilldown state tracking