Please feel free to reach out to our Support team in case if any assistance is required.
Taras Skvarko
Hi @Rose Holmes-Minton,
Following up on the reply above with two more options. Both work with the standard Indicator widget, if you'd rather not switch widget types or install an add-on.
For context, the title inside the indicator is drawn on an HTML canvas rather than as regular text. That's why it's cut off with "…" on a single line, and why CSS settings like white-space or word-wrap have no effect on it.
1. Use the widget header title instead (supports wrapping)
In the widget's Design panel, turn off the indicator's own Title, and enter the full text as the widget title (the header at the top of the widget). The header is regular HTML, so you can make it wrap with a widget script (Widget > Edit Script):
widget.on('ready', function () {
var styleId = 'wrap-title-' + widget.oid;
if (document.getElementById(styleId)) return;
var w = '[widgetid="' + widget.oid + '"] widget-header';
var css =
w + ' { height: auto !important; }' +
w + ' .widget-title__holder { min-width: 0; height: auto !important; }' +
w + ' widget-title,' +
w + ' .transput-holder,' +
w + ' .transput-caption {' +
' white-space: normal !important;' +
' overflow: visible !important;' +
' text-overflow: clip !important;' +
' height: auto !important;' +
' max-height: none !important;' +
' overflow-wrap: anywhere;' +
' word-break: break-word;' +
' line-height: 1.3 !important;' +
'}';
$('<style id="' + styleId + '">').text(css).appendTo('head');
});
Save the script and refresh the dashboard.
A few things to expect:
Viewers see the full title wrapped across the width of the widget, with the value displayed below it.
Dashboard owners/designers will see the title wrap into more lines while editing. That's because the widget toolbar buttons (Analyze It, info, edit, menu) take up part of the header, leaving less width for the title.
Hover (designers only): in view mode, when a dashboard owner/designer hovers over the widget, the toolbar appears and the title re-wraps to the narrower edit layout, so the header briefly "jumps". Viewers don't see this.
A taller header leaves less room for the indicator itself, so you may need to make the widget a bit taller.
2. Reduce the title font size so more text fits
If you'd rather keep the indicator's own title, you can make the font smaller. The title still stays on one line, but less of it gets cut off:
Replace 'numericSimple' with the type your indicator uses ('numericBar', 'gauge' or 'ticker') if it's not the simple numeric one, otherwise the options won't apply.
If you need full layout control, the BloX and add-on options mentioned above are still the most flexible route. And if native wrapping (or a tooltip showing the full title on hover) is something you'd like to see in the Indicator widget, consider posting it in the Product Feedback forum so others can vote on it.
Alina Malynovska
@Rose Holmes-Minton Thanks for your question!
Native wrapping isn't supported in the Indicator widget. We recommend the following alternative solutions:
Switch to a BloX widget, which does support true text wrapping — set
"wrap": "true"on theTextBlock(and optionallymaxLines). https://docs.sisense.com/main/SisenseLinux/overview-sisense-labs.htmPaldi's Advanced Text Widget / Indicators Card marketplace add-ons cover most of text customizations without scripting. https://www.sisense.com/marketplace/add-on/advanced-text-widget/
Please feel free to reach out to our Support team in case if any assistance is required.
Taras Skvarko
Hi @Rose Holmes-Minton,
Following up on the reply above with two more options. Both work with the standard Indicator widget, if you'd rather not switch widget types or install an add-on.
For context, the title inside the indicator is drawn on an HTML canvas rather than as regular text. That's why it's cut off with "…" on a single line, and why CSS settings like white-space or word-wrap have no effect on it.
1. Use the widget header title instead (supports wrapping)
In the widget's Design panel, turn off the indicator's own Title, and enter the full text as the widget title (the header at the top of the widget). The header is regular HTML, so you can make it wrap with a widget script (Widget > Edit Script):
widget.on('ready', function () { var styleId = 'wrap-title-' + widget.oid; if (document.getElementById(styleId)) return; var w = '[widgetid="' + widget.oid + '"] widget-header'; var css = w + ' { height: auto !important; }' + w + ' .widget-title__holder { min-width: 0; height: auto !important; }' + w + ' widget-title,' + w + ' .transput-holder,' + w + ' .transput-caption {' + ' white-space: normal !important;' + ' overflow: visible !important;' + ' text-overflow: clip !important;' + ' height: auto !important;' + ' max-height: none !important;' + ' overflow-wrap: anywhere;' + ' word-break: break-word;' + ' line-height: 1.3 !important;' + '}'; $('<style id="' + styleId + '">').text(css).appendTo('head'); });Save the script and refresh the dashboard.
A few things to expect:
Viewers see the full title wrapped across the width of the widget, with the value displayed below it.
Dashboard owners/designers will see the title wrap into more lines while editing. That's because the widget toolbar buttons (Analyze It, info, edit, menu) take up part of the header, leaving less width for the title.
Hover (designers only): in view mode, when a dashboard owner/designer hovers over the widget, the toolbar appears and the title re-wraps to the narrower edit layout, so the header briefly "jumps". Viewers don't see this.
A taller header leaves less room for the indicator itself, so you may need to make the widget a bit taller.
2. Reduce the title font size so more text fits
If you'd rather keep the indicator's own title, you can make the font smaller. The title still stays on one line, but less of it gets cut off:
widget.on('initialized', function (w) { w.indicatorInstance.setOptions('numericSimple', { title: { fontSizes: { big: 12, medium: 11, small: 10, micro: 9 } } }); });Replace 'numericSimple' with the type your indicator uses ('numericBar', 'gauge' or 'ticker') if it's not the simple numeric one, otherwise the options won't apply.
If you need full layout control, the BloX and add-on options mentioned above are still the most flexible route. And if native wrapping (or a tooltip showing the full title on hover) is something you'd like to see in the Indicator widget, consider posting it in the Product Feedback forum so others can vote on it.
Hope this helps!
Best,
Taras
Rose Holmes-Minton
OPThis great! Thanks Taras