@esfaenza/es-charts 15.2.8 → 15.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1509,7 +1509,7 @@ class PieChartService {
|
|
|
1509
1509
|
//Per evitare di dimenticarmeli e gestire comunque bene gli ngif ecc...
|
|
1510
1510
|
am4core.options.autoDispose = true;
|
|
1511
1511
|
this.ChartInstance = am4core.create(settings.Name, settings.Mode3D ? am4charts.PieChart3D : am4charts.PieChart);
|
|
1512
|
-
this.ChartInstance.innerRadius = ((settings.DonutRadiusPercentage
|
|
1512
|
+
this.ChartInstance.innerRadius = ((isNaN(settings.DonutRadiusPercentage) ? 15 : settings.DonutRadiusPercentage) / 100) * settings.ContainerHeight;
|
|
1513
1513
|
let series = this.ChartInstance.series.push(settings.Mode3D ? new am4charts.PieSeries3D() : new am4charts.PieSeries());
|
|
1514
1514
|
series.dataFields.value = "v";
|
|
1515
1515
|
series.dataFields.category = "k";
|