com.smartgwt.client.widgets.chart

## Interface GradientMapper

-     public interface GradientMapper

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getGradient(int index, java.lang.Object facetValueId, java.lang.String purpose)` Returns the gradient identifier to be used for the specified chart data.

- - ### Method Detail

    - #### getGradient

          java.lang.String getGradient(int index,
                                       java.lang.Object facetValueId,
                                       java.lang.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)`