This plugin will truncate bar chart labels in order to increase readability
- Navigate to
X:\Program Files\Sisense\PrismWeb\plugins\
- Create a new folder named
labelTruncate
and paste the files in this directory into the new folder. - In your SiSense dashboard, navigate to the particular widget you'd like to run the code on
- Inside the widget view, click on the hamburger menu, then click Edit Script.
- Copy and paste the following code, replacing
length
with the numerical maximum length you want your labels to have. If no length is specified, the length will default to 10.
widget.on('initialized', function() {
labelTruncate(widget, length);
});