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:
Violet Voronetzky 2020-09-01 13:27:06 +03:00 коммит произвёл GitHub
Родитель 75253d3184 430ddc9f19
Коммит f103e26bfa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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'