nv.models.discreteBar - GerHobbelt/nvd3 GitHub Wiki
# 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; }
# 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
}