Chart is a component that allows to create different charts on a page. Ui-related chart inherits from view.
To init the component you need to perform a simple procedure - call initialization code.
Initialization code or an object constructor lets you create an object by using common declaration.
dhx.ui ({view:"chart", ...})
Parameters of the chart depends on the type you choose.
Please note, chart is a derived class, i.e. it inherits all the features of the base class (chart → view).
To use ui functionality, touchui.css and touchui.js files must be included.