com.smartgwt.client.widgets.chart

## Interface HasValueClickHandlers

- All Superinterfaces:
    com.google.gwt.event.shared.HasHandlers
  All Known Implementing Classes:
    FacetChart

      public interface HasValueClickHandlers
      extends com.google.gwt.event.shared.HasHandlers

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.event.shared.HandlerRegistration` | `addValueClickHandler(ValueClickHandler handler)` Fires when a data value is clicked, and provides information about the data value that was clicked as a `DrawnValue` object.

    - ### Methods inherited from interface com.google.gwt.event.shared.HasHandlers

      `fireEvent`

- - ### Method Detail

    - #### addValueClickHandler

          com.google.gwt.event.shared.HandlerRegistration addValueClickHandler(ValueClickHandler handler)

      Fires when a data value is clicked, and provides information about the data value that was clicked as a `DrawnValue` object.

      Specifically, this fires for clicks on pie slices, bars or columns, areas, lines or points (in a Bubble or Scatter plot).

      If there are multiple data values at the clicked position, you can use `FacetChart.getNearestDrawnValues()` to discover the full list of values at the current coordinate (pass in `getOffsetX/Y()` for the coordinates).

      If you want to create behaviors for clicking or moving near shapes without requiring a direct hit, implement a standard `Canvas.click()` handler on the FacetChart as a whole and use `FacetChart.getNearestDrawnValue()` to discover the nearest data values.

      Parameters:
        `handler` - the valueClick handler
      Returns:
        `HandlerRegistration` used to remove this handler