-
Notifications
You must be signed in to change notification settings - Fork 2.1k
nv.models.discreteBar
Shineoffire edited this page Dec 12, 2016
·
7 revisions
WRONG
# 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
}