Is there any way to influence the font size in Das...
# gooddata-cloud
m
Is there any way to influence the font size in Dashboard to keep same size?
👀 1
k
Looking at your screenshot, I can see that the KPI values are displaying at different font sizes (the third KPI "232 435" appears larger than the other two). This is likely GoodData's automatic font scaling behavior based on the widget size or value length. Influencing KPI Font Size via Themes GoodData's theming system allows you to customize KPI widget appearance via JSON, but the knowledge sources do not explicitly mention a property to fix/lock the font size of KPI values to a uniform size. The available KPI-related theme properties are: •
primaryMeasureColor
– color of the main KPI value •
secondaryInfoColor
– color of the comparison/secondary info •
title.color
and
title.textAlign
– for the widget title Example:
Copy code
{
  "dashboards": {
    "content": {
      "kpiWidget": {
        "title": {
          "color": "#6D7680",
          "textAlign": "center"
        },
        "kpi": {
          "primaryMeasureColor": "#3049D1",
          "secondaryInfoColor": "#8292E3"
        }
      }
    }
  }
}
[Theme Settings Reference] There is no documented theme property to explicitly set or lock the KPI value font size to a uniform value across all widgets. What You Can Do 1. Custom themes – You can change fonts globally via the
typography
property, but this won't pin KPI values to a specific size. [Theme Properties] 2. Make widgets the same size – Since font scaling is likely tied to widget dimensions, ensuring all KPI widgets are the same width/size on the dashboard may help normalize the displayed font size. [Resize Widgets] 3. GoodData.UI SDK – For full control over KPI styling (including font size), the GoodData.UI React SDK allows building fully custom visualizations with complete control over layout and styling. [Customize Appearance] > Note: The
ITheme.kpi
property exists in the SDK API but is currently marked as beta and may change. [ITheme.kpi] In summary, there is no straightforward built-in option to lock KPI font sizes to a uniform value through the standard theming JSON. The most reliable workaround is to ensure all KPI widgets are the same size on the dashboard, or use the GoodData.UI SDK for full customization. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups. 👀 Our Support team monitors all messages and will jump in if needed.
m
Hi Marketa, Thank you for reporting this. The font size of headline widgets adapts automatically to the available space of each widget, which is by design. However, we understand that when multiple widgets are placed side by side this can result in inconsistent sizes, which is not ideal. We have raised an internal ticket to revisit this behaviour. In the meantime, a workaround that worked on our end: try setting all headline widgets to their minimum height — this should make the font sizes appear consistent across the row. Let us know if that works for you or if you need anything else.
🙏 1
m
Thank you! 🙂
🙌 1
m
Hi Marketa, just a quick follow-up from our engineering team, we've confirmed that the font scaling behavior is intentional: each headline widget scales its value to fill its own tile, so at larger heights the font size will vary based on value length and widget width. The minimum-height workaround works because at that size, height becomes the limiting factor and all widgets end up at the same font size as a side effect. Since this is not a bug or a blocker, it sits in the backlog and will be picked up when the team has capacity, so there's no fixed timeline. Thanks again for raising it and for your understanding.