Skip to main content

Controller

Creating a Controller

Creating a Controller is straightforward.

Either by id:

const controller = new BG.charts.Controller({
'id': 'charting' // assuming there is a div in the DOM with id 'charting'
/* additional properties can be specified here */
});

or by reference:

const controller = new BG.charts.Controller({
'element': div // div is an HTMLElement object
/* additional properties can be specified here */
});