# Get Unique Values for Elastic UI Donut Charts

**URL:** <https://discuss.elastic.co/t/get-unique-values-for-elastic-ui-donut-charts/339087>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [July 24, 2023, 11:37am UTC](https://discuss.elastic.co/t/get-unique-values-for-elastic-ui-donut-charts/339087 "2023-07-24T11:37:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrildaniel](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@cyrildaniel](https://discuss.elastic.co/u/cyrildaniel)\
**Post date:** [July 24, 2023, 11:37am UTC](https://discuss.elastic.co/t/get-unique-values-for-elastic-ui-donut-charts/339087/1 "2023-07-24T11:37:08Z")

</div>

I would like to show the total unique count of vendors in the middle of the donut chart, but by default the total count comes. Is there a way to show the unique number of vendors?  
In the below image instead of 98 it should be shown as 5  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/8/68c83dc44f5ae894a0db4f2ddabf163aa88269b2.png)

The code added as the first layer is shown below

````auto
{
      groupByRollup: () => '',
      nodeLabel: () => 'Total',
      shape: {
          fillColor: 'black',
      }
},```
````

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 25, 2023, 7:44am UTC](https://discuss.elastic.co/t/get-unique-values-for-elastic-ui-donut-charts/339087/2 "2023-07-25T07:44:36Z")

</div>

Hi Thanks for asking, I kindly suggest you to post your questions related to elastic-charts [here](https://github.com/elastic/elastic-charts/issues) for a faster response time.

In the meantime the short answer is no, this is not possible to show a title/total number in the center of a pie chart. We are actually in the process of choosing a slightly different approach bu pushing the total/center value outside the pie, like it is shown here for the circular gauge [Small multiple for gauges/bullet graph · Issue #1235 · elastic/elastic-charts · GitHub](https://github.com/elastic/elastic-charts/issues/1235#issuecomment-1628870593)

This has some benefits: will be aligned with the rest of the charts we are currently improving/developing, and the text/value has way more space available, then when rendered within a small circular space.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 22, 2023, 7:44am UTC](https://discuss.elastic.co/t/get-unique-values-for-elastic-ui-donut-charts/339087/3 "2023-08-22T07:44:53Z")

</div>

Closed on August 22, 2023, 7:44am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
