.off( evtName )

Remove all event handlers for the specified event. Should be called when a chart is disposed.

chart.off( event )


Name Type Required Description
event string yes Name of the interaction event to bind the function. (mouseover)

Available Events

Name Description
'mouseover' fires when the mouse moves over elements on the chart
'mouseout' fires when the mouse leaves an elements on the chart
'click' fires when on clicking an element on the chart

Example Code

<div class="row">
  <div class="col-lg-12" id="chart"></div>


   //define a handler for chart events 
  function showItem(event,data){
    //dump data to console...

  //setup a chart using a json file that is the complete definition
  var chart = new Cedar({

  //render the chart
    elementId: "#chart"

  //attach handler (can also be done before .show())
  chart.on('click', showItem);

  //remove handler


Edit this page on GitHub