cancel
Showing results for 
Search instead for 
Did you mean: 

Getting chart category while hovering over chart

former_member356284
Participant
0 Kudos

Hello All,

I am working on a requirement where I need to fetch the category while hovering over the chart.

Can you please help me in getting a way out of it?

Please let me know if the requirement does not seem clear to you.

Thanks and Regards,

Aakanksha Gupta

Accepted Solutions (1)

Accepted Solutions (1)

former_member365727
Active Contributor
0 Kudos

Are you referring to 'Category' as 'x-axis'?

if tooltip is not visible then you can use 'setVizProperties()' method to enable it.

provide more details....

Answers (1)

Answers (1)

former_member356284
Participant
0 Kudos

templlaterror.pngThank you Srikanth.

Actually I was using sap.makit library to display my charts.

Being a beginner in this field, I am just binding the data from the an onPremise oData service to the Categories and the value of the chart type.

Caegories where represents the x axis and Value represents the y-axis.

So now the requirement is to get the chart details as I hover over the category of the Pie Chart.

I even tried using SmartChart control, but getting some error in it.

Please let me know if the scenario is not clear.

Thanks and Regards,

Aakanksha Gupta

mantrishekar
Active Participant
0 Kudos

Could you Please Paste the code snippet of how you are defining the chart and binding the chart.This would give us a clear idea to help you.

former_member356284
Participant
0 Kudos

Yeah Sure.

Using makit chart: img1.png

Using vizFrame Charts: img2.png

This particular piece of code is giving me the above mentioned error. templlaterror.png

I even tried using SmartCharts but for it also the same error as above is coming img3.png

Can you please help me out in understanding the error.

Thanks and Regards,

Aakanksha Gupta

former_member356284
Participant
0 Kudos

Here is the index file for these charts.

img4.png

mantrishekar
Active Participant
0 Kudos

Ok from the above information from img2.png you need to change a bit to get hover i.e try to remove uiconfig application set fiori.This will show the hover.

Coming to the error thrown it looks like you have passed uid as size.As per my knowledge we need to change size to other property which will suit there.

Hope this information helps you.

former_member356284
Participant
0 Kudos

Hi Shekar,

Thank you for the help.

As per the guidance, I updated the code in the following manner, but still the same error is appearing.

Thanks and Regards,

Aakanksha Guptaimg5.png

mantrishekar
Active Participant
0 Kudos

Hi Aakanksha,

Could you please Share your folder structure and version of sapui5 you are using

former_member356284
Participant
0 Kudos

Hi Shekhar,

Please find the attached screenshots of the folder structure.img6.png

I guess this is the SAPUI5 version, I am using img7.png

Thanks and Regards,

Aakanksha Gupta

mantrishekar
Active Participant
0 Kudos

Aakanksha,

it still looks wierd.But i will help you if it is not anything propreitory or it is a content u are practicing then please share the whole project so that i will debug and let you know.otherwise i will connect through teamviewer to resolve this

Regards,

Shekar,

mantrishekar951@gmail.com

former_member356284
Participant
0 Kudos

Hi,

Thank you Shekhar.

I guess the issue is resolved. I just made the above said changes and restarted the system.

Thanks and Regards,

Aakanksha Gupta

mantrishekar
Active Participant
0 Kudos

Ok then close this thread by marking the answer as correct answer

former_member356284
Participant
0 Kudos

Ok Shekhar.

Thank you.