Display value in a pie chart

Hello all,

In Canvas, I am trying to display in a pie chart the value of the data point that is queried from TM1. I could not find the correct parameter in the directive tm1-ui-chart to do it. I set tm1-show-values to true but it did not work. When I hover on the pie chart area, the value pops up and this is this value that I would like to display in the pie chart.

Thank you in advance for your help.

Veolia BI Team

Hi @anz.fin.all.mailbox,

The underlying charting engine seems to not support that configuration for that type of chart. However, you can add the following attribute instead on the tm1-ui-chart directive:

tm1-options-override="{chart:{labelType:'value'}}"

Which should give you this:

For more options with the pie chart for example, you can check it out here:

http://krispo.github.io/angular-nvd3/#/pieChart

The site has plunker as well for which you can edit it live, and see the effects straight away on the Plunker linked to the charts.

Was this the value that you were looking for?


Paul

1 Like

Dear Paul,

Thank you very much. This is exactly what I was looking for.

Kind regards,
Veolia BI Team

Great! Cheers!


Paul

Is it possible to display the value and the % as well ?

Thanks.
Winson

Hi @wlee,

With the pie chart at least, yes! Change it to ‘percent’.

Have been collecting the overrides in here to on the forum topic Canvas Tips - Tm1-ui-chart Useful Options Override.


Paul