Skip to Content
0

How to set single-selection mode in chart Popover?

Oct 18, 2017 at 08:52 AM

29

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Daniel Degraf
Oct 18, 2017 at 09:04 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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?

0

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)/Line%20Chart/

Best regards
Daniel

1