on 10-18-2017 9:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.