Oct 09

Callback Event for Charts Widget

The onBeforeRender method contains 2 parameters.

That includes,

  1. widget
  2. chartInstance.


Widget is the wavemaker instance of the Chart widget.


This is the nvd3 chart object which can be used to manipulate the chart by setting properties supported by the nvd3 library.

This method can optionally return an nvd3 chart object to change the complete chart which is being rendered. So in case a chart is not supported by default in wavemaker and is supported in nvd3 the user can create that charts nvd3 object and return the newly created nvd3 object, this will render the new nvd3 object i.e. the new chart will be rendered.

NOTE: To set chart data, use the widget.setChartData method.



We use cookies to provide you with a better experience. By using our website you agree to the use of cookies as described in our Privacy Policy.