nv.models.discreteBar - novus/nvd3 GitHub Wiki

Usage

WRONG

Chart Variables

# chart.dispatch

# chart.options

# chart.x( [function(d) { ... }] )

Sets/gets the accessor function for extracting the x-value from the datum. Defaults to function(d) { return d.x; }

# chart.y( [function(d) { ... }] )

Sets/gets the accessor function for extracting the x-value from the datum. Defaults to function(d) { return d.y; }

Events

# elementClick

Dispatch is called with the following event object:

{
  value:
  point:
  series:
  pos:
  pointIndex:
  seriesIndex:
  e:
}

# elementDblClick

Dispatch is called with the following event object:

{
  value:
  point:
  series:
  pos:
  pointIndex:
  seriesIndex:
  e:
}

# elementMouseover

Dispatch is called with the following event object:

{
  value: // the Y-value of the element being moused over
  point: // the datum corresponding to the element being moused over
  series:
  pos:
  pointIndex: // index of this element's datum
  seriesIndex: 
  e: // d3.event at the point of handling the mouseover event
}

# elementMouseout

Dispatch is called with the following event object:

{
  value: // the Y-value of the element being moused-out
  point: // the datum corresponding to the element being moused-out
  series:
  pointIndex: // index of the element's datum
  seriesIndex:
  e: // d3.event at the point of handling the mouseout event
}
⚠️ **GitHub.com Fallback** ⚠️