0

I am developing a page with chart. I want to add personalization to the chart. From the documentation I understood that I need to set the showPersonalization="true" and have a method personalizationPress="attachPersonalizationPress".

But after that what exactly I need to do? Also, I want to know how can I use variant manager in the charts. These are the VizFrame charts and not the smartcharts.

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

According to the design guidelines:

Developers can add a Personalization button to the app’s chart toolbar to enable app-specific personalization charting (property: ShowPersonalization). The corresponding popover and details also need to be implemented by the developer.

To handle the personalization event, start from this SAPUI5 Explored example:

  • add attachPersonalizationPress function to the Contorller:

    function attachPersonalizationPress() {
       // do your logic here
    }
    
  • add attachPersonalizationPress to personalizationPress event in the View:

    <ChartContainer
            showPersonalization="true"
            personalizationPress="attachPersonalizationPress">
    
Péter Cataño
  • 447
  • 2
  • 7