The first function is
resize(width,height). The resize function is called every time the visualization renders as a different size, and allows the visualization to adjust calculations.
The second function is
draw(datView, vizOptions). This function is called when rendering the visualization. The
dataView object contains a multi-dimensional result set returned from the server, and the
vizOptions object contains any customized options specified by the user when configuring the visualization.