polr
This commit is contained in:
		
							parent
							
								
									02b82fcaf8
								
							
						
					
					
						commit
						e0bd888c45
					
				| @ -279,10 +279,11 @@ | |||||||
|     </div> |     </div> | ||||||
|   </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 |     <canvas baseChart | ||||||
|       [datasets]="polarAreaChartData" |       [datasets]="polarAreaChartData" | ||||||
|       [labels]="polarAreaChartLabels" |       [labels]="polarAreaChartLabels" | ||||||
|  |       [options]="polarAreaChartOptions" | ||||||
|       [type]="polarAreaChartType" |       [type]="polarAreaChartType" | ||||||
|       (chartHover)="chartHovered($event)" |       (chartHover)="chartHovered($event)" | ||||||
|      (chartClick)="chartClicked($event)"> |      (chartClick)="chartClicked($event)"> | ||||||
|  | |||||||
| @ -90,6 +90,32 @@ export class PolarChartComponent implements OnInit, OnChanges { | |||||||
|     { data: [ 300, 500, 100, 40, 120 ], label: 'Series 1'} |     { 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'; |   public polarAreaChartType: string = 'polarArea'; | ||||||
|    |    | ||||||
|   // Multi-layer drilldown state tracking
 |   // Multi-layer drilldown state tracking
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user