3

I am using highcharts in my lightning components which is embedded in a lightning app. When clicking on the chart , I am firing an event. the method to draw the chart is called from renderer. And the security review says "You should not fire an event in a renderer" eventhough the event is fired only when it is clicked. The code snippet is shown below.

  events: {
    click: function () {
       var dataValue = this.y;
       var categoryName = this.series.name;

       var updateEvent = component.getEvent("updateExpense");
       updateEvent.setParams({ 
          "dataValue": dataValue,
          "categoryName"" categoryName
       });
       updateEvent.fire();
    }
  }

What should I do here, because its an inevitable functionality.
Any help would be appreciated.

2
  • Why can't you draw your chart from Helper.js? May 16, 2016 at 22:13
  • Actually I am drawing the chart in helper.js but the particular method is called from renderer. May 23, 2016 at 4:14

0

You must log in to answer this question.