Package com.smartgwt.client.widgets.chart

# Interface GradientMapper

public interface GradientMapper

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getGradient(int index, Object facetValueId, String purpose)`
  Returns the gradient identifier to be used for the specified chart data.

- ## Method Details

  - ### getGradient

    String getGradient(int index, Object facetValueId, String purpose)
    Returns the gradient identifier to be used for the specified chart data.
    Parameters:
      `index` - index of the legend facet value to be rendered
      `facetValueId` - id of the legend facet value to be rendered
      `purpose` - purpose for the requested gradient - such as "legend", "line", "area", "points", etc.
    Returns:
      gradient id
    See Also:
      - `FacetChart.setDataGradientMapper(com.smartgwt.client.widgets.chart.GradientMapper)`
      - `MetricSettings.setDataGradientMapper(com.smartgwt.client.widgets.chart.GradientMapper)`