Platform analytics dashboard
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi everyone,
I’m working on a Platform Analytics dashboard (score widget / score tile) and had a few UI-related questions:
- Is it possible to change the background color of a score widget/tile (not just the score color via thresholds)?
- Can we customize the font size of the heading/title in a score widget?
- Is there a way to center-align the score value (digits) both horizontally and vertically within the tile?
As of now I have created dashboard using in line editor.
PFA an image FYR.
Any guidance, best practices, or examples would be really helpful.
Thanks in advance!
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Try this single CSS Include for your dashboard.
Steps:
- Inspect your dashboard's score tiles in browser DevTools to grab the exact class names (they vary by release).
- Create a Style Sheet record (
sys_ui_style) and add it to your dashboard. - Apply overrides as below and try:
css
/* 1. Background color (override or supplement thresholds) */
.pa-widget-body {
background-color: #2D2D2D !important;
}
/* 2. Title font size */
.pa-widget-header .pa-widget-title {
font-size: 12px !important;
}
/* 3. Center-align score value */
.pa-widget-score {
text-align: center !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
