Skip to Content
author's profile photo Former Member
Former Member

how to use fireSelectData in vizchart?

Dear expert,

I have a Scatter now and I want to do the following thing: when I press a button, a certain point in Scatter will be selected, e.g. the first point in the dataset.

I searched API and found the function "fireSelectData".

I guess it can solve this problem. All types of chart have this function. Unfortunately, I don't know how to use it. What should I input? Thanks in advance.

Best regards,


Capture.PNG (9.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 16, 2013 at 05:18 AM

    Hi Wenjun,

    event handling is fully covered in the Developers Guide here.

    You can also refer to these blogs for some examples of event handling in charts.


    SAPUI5 VIZ Charts Event Handling


    Graham Robbo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2016 at 12:53 PM

    Hi Wenjun,

    I know its been quite some time this post has been published. But did you find a solution to your requirement? If yes can you please share. I have a similar problem.



    Add a comment
    10|10000 characters needed characters exceeded

    • var model1 = {

      data : [

      {color:"Red", product:"Car", revenue:46},

      {color:"Blue", product:"Car", revenue:40},

      {color:"Red", product:"Truck", revenue:72},

      {color:"Blue", product:"Truck", revenue:35}


      var data = {

      dimensions : [

      {axis : 1, name : 'Color', value: "{color}"},

      {axis : 2, name : 'Product', value: "{product}"}


      measures : [{name : "Revenue", value : "{revenue}"}],

      data : {

      path : "/data"



      var oDataset = new;

      var oModel1 = new sap.ui.model.json.JSONModel(model1);

      var oChart = new sap.viz.ui5.Bar({

      width: "80%",

      height : "400px",

      dataset: oDataset,

      initialized: function(oEvent){

      oChart.selection([{"data":{"Color": "Red", "Product": "Truck", "Revenue": 72}}]);




      Please check the above code, especially those in bold. In general, you call oChart.selection() and pass in the data row. Whole While putting this call inside initialized method, it will be called when vizChart has initialized, Chart engine will execute it after rendering.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.