cancel
Showing results for 
Search instead for 
Did you mean: 

to display values on individual bars in bar charts

Former Member
0 Kudos

Hi

How to make the values appear for each bar in the bar chart. Displaying exact values on each bar in bar graphs is necessary for our project.

In the layout, we have set the attribute displayObjectValues to 'TRUE' but on mouseover, it only displays a blank tooltip (it looks like one space).

After going to other forums, i came to know that it may be a SAP bug. Also, i got a solution for fixing it in the following forum:

-


The solution suggested in the above forum is:

______________________________________________

We had to modify CL_HTMLB_CHART(DO_AT_END) because of an SAP bug. This fixed our pie chart but we have to confirm with SAP that this is a valid fix or if they have another way to correct the problem.

Mike

-


loop at data into l_s_data.

*{ INSERT

    • Added logic to show tool-tip

condense l_s_data-x.

condense l_s_data-y.

    • End logic

*} INSERT

concatenate l_data_string

'@.' l_s_data-groupid

'@,' l_s_data-x

'@,' l_s_data-y

'@,' ' '

*{ DELETE

* '@,' ' '

*} DELETE

*{ INSERT

    • Added logic to show tool-tip

'@,' l_s_data-y

    • End logic

*} INSERT

'@,' l_s_data-color

into l_data_string.

endloop.

-


So, my question is: whether that is a valid fix? Or there is some alternative available. We can only go for standard solution, so we need to be supported by SAP note or something. Is there some standard SAP solution or SAP note available regarding this?

Regards

Ashish Jain

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As far as I know there was no note on this otherwise would have implemented it as well and as of SP49 the problem is still there.

Former Member
0 Kudos

Hi All

Please tell me if the problem can be corrected by modifying the class CL_HTMLB_CHART(DO_AT_END) with the code as posted by me in my original query.

Has anyone faced as well as solved this problem? And, i'm surprised if there is no OSS note available for it.

Thanks and Regards

Ashish Jain

ashishjain@ko-india.com

Former Member
0 Kudos

Graph tab type IGS_DATA_TAB

populate extension field value using the below code

CONCATENATE 'alt="' wa_tab-tooltip_txt '"' INTO wa_graph-extension .