Skip to Content
avatar image
Former Member

How to write custom tooltip for vizframe charts in sapui5

Hi Geeks,

I am using vizframe charts in one of my requirements. I have disabled standard tooltip and wanted to enable Custom tooltip. I have gone through the chart Documentation. There is an property called interaction to enable Custom tooltip. I have used interaction.decoration property but i am not getting custom tooltip.

Event handler for showDetail is not getting triggered when i hover mouse on column bar graph.

Can anyone help me?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 08 at 10:33 AM

    hello,

    {
        name: "selectData",
        data: [{
            //selected element's detail
            target: "Dom Element", //an object pointed to corresponding dom element
            data: {
                Dimension1: value
                Dimension2: value
    
    
                ...
                DimensionN: value
                Measure1: value
                Measure2: value
    
    
                ...
                MeasureN: value
            }
        }
        //if under multi selection, there will be more than one selected elements
    
    
        ...]
        type: "dataPoint"
    }
    
    
    see this url : https://sapui5.hana.ondemand.com/docs/vizdocs/index.html#reference/chartProperty/Charts/Bar%20%20(15)/Bar%20Chart/
    Add comment
    10|10000 characters needed characters exceeded