Merge pull request #73 from microsoft/features/violet/always_show_pie_Percentage
Always show pie percentage in the pie labels
This commit is contained in:
Коммит
f103e26bfa
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "adx-query-charts",
|
||||
"version": "1.1.48",
|
||||
"version": "1.1.49",
|
||||
"description": "Draw charts from Azure Data Explorer queries",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
@ -36,7 +36,7 @@ export class Pie extends Chart {
|
|||
showInLegend: true,
|
||||
dataLabels: {
|
||||
formatter: function() {
|
||||
return `${this.point.name}${self.getPercentageSuffix(this)}`;
|
||||
return `<b>${this.point.name}</b>${self.getPercentageSuffix(this)}`;
|
||||
},
|
||||
style: {
|
||||
textOverflow: 'ellipsis'
|
||||
|
|
Загрузка…
Ссылка в новой задаче