BootstrapChartLegendSettings.OnClientCustomizeItems Property
In This Article
Allows you to change the order, text, and visibility of legend items.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A string that represents either the name of a Java |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to On |
---|---|
Bootstrap |
|
#Remarks
C#
chart.SettingsLegend.OnClientCustomizeItems= @"function(items) {
return items.sort(function(a, b) {
var itemA = a.text.toLowerCase();
var itemB = b.text.toLowerCase();
if(itemA < itemB) return -1;
if(itemA > itemB) return 1;
return 0;
});
}";
See Also