ejHeatMapLegend
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
Legend is a control used to summarize the range of colors in HeatMap. This gives visual guideline for mapping between value and color.
- C#
- VB.NET
public class ejHeatMapLegend : ejBase
Public Class ejHeatMapLegend
Inherits ejBase
Constructors
ejHeatMapLegend()
Constructs a new instance of the ejHeatMapLegend class.
Example:
The following example creates the legend and sets the colors through the options.
var legend = new ejHeatMapLegend();
legend.Options.colorMappingCollection = new[]
{
new { value = 0, color = "#8ec8f8" },
new { value = 100, color = "#0d47a1" }
};
legend.Size = new Size(400, 60);
this.Controls.Add(legend);
ejHeatMapLegend(options)
Constructs a new instance of the ejHeatMapLegend class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a horizontal gradient legend that uses the same colors of the heat map.
var legend = new ejHeatMapLegend(new
{
orientation = "horizontal",
legendMode = "gradient",
colorMappingCollection = new[]
{
new { value = 0, color = "#8ec8f8" },
new { value = 100, color = "#0d47a1" }
}
});
legend.Size = new Size(400, 60);
this.Controls.Add(legend);