Forum Discussion

Kins's avatar
Kins
Cloud Apps
09-05-2022

Wrap text on KPI widget

Is there a way to wrap text on a KPI widget? My text is slightly too long, and is chopping off the end of the sentence with '...'

Thanks 

1 Reply

Replies have been turned off for this discussion
  • harikm007's avatar
    harikm007
    Data Warehouse

    Hi Kins ,

    Not sure how to wrap text in an indicator widget. But here are 2 solutions to display entire text:

    • Increase the width the indicator widget
    • Use blox instead of Indicator. Here is a sample script for Blox
      {
          "style": "",
          "script": "",
          "title": "",
          "showCarousel": true,
          "body": [
              {
                  "spacing": "medium",
                  "type": "Container",
                  "items": [
                      {
                          "spacing": "small",
                          "type": "TextBlock",
                          "text": "Average sales for the year 2022",
                          "color": "default",
                          "wrap": true,
                          "horizontalAlignment": "center"
                      },
                      {
                          "type": "TextBlock",
                          "text": "250",
                          "horizontalAlignment": "center",
                          "size": "extraLarge",
                          "style": {
                              "color": "#117899"
                          }
                      }
                  ]
              }
          ],
          "actions": []
      }​

    -Hari