cancel
Showing results for 
Search instead for 
Did you mean: 

How to set single-selection mode in chart Popover?

Former Member
0 Kudos

I have a line chart in which I am showing the popover for data points. By default the chart is in multiselection mode.

I would like to know how to change it to single selection mode?

Thanks.

Mahnaz

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Mahnaz,

you can set the interaction mode using VizProperties. Here is an example:

oVizFrame.setVizProperties({
	general: {
		background: {
			color: "#ffffff"
		}
	},
	legend: {
		visible: false
	},
	interaction: {
		selectability: {
			mode: 'EXCLUSIVE'
		}
	}
});

Best regards
Daniel

Former Member
0 Kudos

Hi Daniel. thanks a lot for your answer. It works as I wanted.
Just one question. After your reply I looked into selectability and I came across this example which uses the mode "EXCLUSIVE". I tested it and got the same result as single mode.

Do you know by any chance what the difference is?

Hi Mahnaz,

good question - my example is from an older application. The documentation says that SINGLE and MULTIPLE are deprecated and EXCLUSIVE (= SINGLE) and INCLUSIVE (=Multiple) are the new values to go with. So the better value to choose is EXCLUSIVE.

Documentation can be found here: https://sapui5.hana.ondemand.com/docs/vizdocs/index.html#reference/chartProperty/Charts/Line%20%20(3...

Best regards
Daniel

Answers (0)