Wijmo UI for the Web
textWidth Field
wijmo.chart Namespace > chart_legend Interface : textWidth Field

A value that indicates the width of the legend text in pixels, allowing you to control line break positioning for multi-word legend entries.

Type: Number

Default: null (Finds the width of the widest legend entry.)

Syntax
var instance; // Type: wijmo.chart.chart_legend;
var value; // Type: number
value = instance.textWidth;
var textWidth : number;
Remarks

Based on this setting, legend entries (from seriesList labels), render either in a single line, or word wrapped to the nearest word.

No matter the setting, the textWidth renders at least as wide as the widest word in the legend, and no wider than the widest legend entry.

See Also

Reference

chart_legend Interface