cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I visualise timeseries data in pie chart?

Maheedhar_T
Advisor

I have multiple metrics and I want to combine those records into a pie chart in a Dashboard. How to achieve this with DQL using timeseries. Pie or Dougnut anything works. I am trying to combine the total value of timeseries Data like this

 

timeseries metirc= sum(metirc)
| fieldsAdd metirc.single_value = arraySum(metirc)

 

but this does not allow me to convert to pie or doughnut.

Also, for combining 3 metrics I am using 

timeseries { metric1 = sum(log.metric1), metric2 = sum(log.metric2), metric3 = sum(log.metric3) }
| fieldsAdd metric1 = arraySum(metric1)
| fieldsAdd metric2 = arraySum(metric2)
| fieldsAdd metric3 = arraySum(metric3)
| fields metric1,metric2,metric3

Is it possible by anyway to convert this to pie or doughnut visualisation where I want to see the total area of pie as total of metric1, metric2 and metirc3 and each slice represented in different colour.
Something like this.

Maheedhar_T_0-1727937136191.png

 

Maheedhar
6 REPLIES 6

dannemca
DynaMight Guru
DynaMight Guru

What if you try to create the tile using the Data Explorer, then open the result with Notebook, using the "Open With" function?
image (38).png

image (39).png

image (40).png

Site Reliability Engineer @ Kyndryl

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey Maheedhar,

For donut charts you need to have each metric in it's own record. If you are using multiple different metrics the best way to achieve this is with append as seen below. To get the total to show in the middle, use the pie settings as seen on the right.

Fin_Ubels_0-1728014762151.png

Otherwise, if it's 1 metric but each section in the donut is a different dimension then this can be achieved just by splitting the metric as seen below.

Fin_Ubels_1-1728015002446.png

Based on your original post, I would say the first example best fits. Hope this helps!

Thanks @Fin_Ubels ,
The first method suits and worked like magic. 🙂

Maheedhar

Is there a way to see in donuts 2 dimension in the same slice?

No but categorical bar chart allows to show categories and subcategories

zietho
Dynatrace Leader
Dynatrace Leader

Or you can also use "Explore metrics" for this like. 

using split by + reduce to single value

zietho_1-1728366033177.png

 

 

Featured Posts