cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anonymous21
Post Prodigy
Post Prodigy

Tooltip and more values in Pie Chart

Hi,

anonymous21_1-1656904184637.png

Can I do a tooltip in pie chart? When I move my cursor to a section in the pie chart, it will display the leave type.

Can I also do like 4/10 for the value in the pie chart?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Krishna_R
Responsive Resident
Responsive Resident

Hi @anonymous21 , either collection or table, adding a column approach remains same as shown below

 

Krishna_R_0-1656929287145.png

 

View solution in original post

4 REPLIES 4
Krishna_R
Responsive Resident
Responsive Resident

Hello @anonymous21 ,

I believe we will not be able to achieve tool tip here. but the other way would be adding a column and to concatenate both the values

 

First Approach:

1. in the items property of pie chart

Krishna_R_0-1656923431028.png

 

2. and select the xLabel in columns section of pie chart.

 

Second Approach: using select method

1. add one text label, and inside text property pass the piechart.selected.LeaveType.
Assuming LeaveType is your column name here, which will display the details of leave type

@Krishna_R 

my piechart's item is like this:

Table(
      {
         Col: "Annual Leave", Value: CurrentUserData.AnnualLeave
      },
      {
         Col: "Calamity Leave", Value: CurrentUserData.CalamityLeave
      },
      {
        Col: "Carry Forward Leave", Value: CurrentUserData.CarryForwardLeave
      },
      {
          Col: "Emergency Leave", Value: CurrentUserData.EmergencyLeave
      },
      {
          Col: "Hospitalization Leave", Value: CurrentUserData.HospitalizationLeave
      },
      {
          Col: "Maternity Leave", Value: CurrentUserData.MaternityLeave
      },
      {
          Col: "Paternity Leave", Value: CurrentUserData.PaternityLeave
      },
      {
          Col: "Sick Leave", Value: CurrentUserData.SickLeave
      },
      {
          Col: "Quarantine Leave", Value: CurrentUserData.QuarantineLeave
      }
    
)

So how to add column using the first approach?

 

I don't think can use the second approach as the pie chart will be different for each user. So the leave type can be different thus making the pie chart looks different. But then, the text label has been put beside the value so it will move right.

Krishna_R
Responsive Resident
Responsive Resident

Hi @anonymous21 , either collection or table, adding a column approach remains same as shown below

 

Krishna_R_0-1656929287145.png

 

@Krishna_R

It works, thank you! Is there a way to make the label a bit bigger to show all the words like Calamity Leave: 3?

anonymous21_0-1656936584010.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,899)