Skip to main content

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.

public class ejHeatMapLegend : ejBase

Constructors​

Instance member 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);

Instance member ejHeatMapLegend(options)​

Constructs a new instance of the ejHeatMapLegend class.

NameTypeDescription
optionsObjectInitial 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);

Implements​