Writing JS Class for the Bar Chart

As defined already, in order to render an app, add an app JS class for the chart with the App ID defined in Create App Definition screen.

For Chart apps, the following listeners are available to handle the user click events:

  • CONTEXT_CLICK – listens to the single-click events
  • DRILL_DOWN – listens to the double-click events

Assuming the chart JS file name is CurrencywiseTransBarChart.js

CWEH.registerHandler('APP_CURRENCY_TXN', CWEC.DRILL_DOWN, function(config, data)
{
	//Implementation logic for double-click goes here 
});