Browse Source

Handle label with empty chart

pull/353/head
Thomas 4 years ago
parent
commit
f9b5975577
  1. 4
      apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

4
apps/client/src/app/components/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -259,7 +259,9 @@ export class PortfolioProportionChartComponent
align: 'end',
anchor: 'end',
formatter: (value, context) => {
return context.chart.data.labels[context.dataIndex];
return value > 0
? context.chart.data.labels[context.dataIndex]
: '';
},
offset: 8
}

Loading…
Cancel
Save