Bullet chart X-axis displays duplicate tick labels...
# gooddata-cloud
m
Bullet chart X-axis displays duplicate tick labels for small value ranges - when a bullet chart has a small number of values (low value range), the X-axis renders incorrectly. Instead of showing a clean sequence of axis labels (e.g., 0, 1, 2, 3), the axis duplicates labels, displaying something like 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3.
👀 1
k
The knowledge sources do not contain enough information to directly address this specific bug — duplicate/repeated X-axis tick labels on bullet charts with small value ranges. This appears to be a rendering issue where the axis tick generation algorithm produces more ticks than there are distinct integer values, resulting in repeated labels (e.g.,
0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3
instead of
0, 1, 2, 3
), as visible in your screenshot. Possible workarounds based on available documentation: 1. Set explicit axis min/max values — You can constrain the X-axis scale using
config.xaxis.min
and
config.xaxis.max
via the GoodData.UI SDK, which may reduce the number of ticks rendered: [Configure axes]
Copy code
<InsightView
    insight="<InsightView-id>"
    config={{
        xaxis: {
            min: "0",
            max: "3"
        }
    }}
/>
2. Set axis min/max in Analytical Designer — In the UI, go to Configuration > X-axis and set the Min and Max fields to your expected range. [Visualization Properties] Recommended action: I'd suggest reporting this as a bug to GoodData Support, as duplicate tick labels on small integer ranges is likely an unintended rendering behavior. The GoodData.UI SDK's `xaxis.min`/`xaxis.max` settings are the best available workaround in the meantime. [IAxisConfig properties] 👍 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
I’d prefer not to set min/max manually, since this report is inherited from a parent, and I don’t want to change the parent’s configuration.
m
Hi Marketa, thank you for this. Let me check this internally, and I will provide an update when I find something. To understand better the context, can you please share the direct link to the dashboard? Thank you in advance.
🙌 1
m
Hi Marketa, Thank you for your time. We managed to reproduce the bullet chart X-axis issue on our end. The problem occurs when the primary metric is formatted as Rounded (integer): the chart’s tick generator computes fractional positions internally (0, 0.5, 1.0, 1.5...) which then round to duplicate labels (0, 1, 1, 2, 2...) on the axis. It’s also viewport-sensitive, so resizing the browser can make it appear or disappear. In the meantime, here is a workaround that resolves the issue immediately: • Open the bullet chart in edit mode. • Go to Configuration → X-Axis → Labels → Format. • Change the value from Inherit to Auto (default). This overrides the metric’s Rounded format on the axis and the labels render correctly (but with decimal). We have submitted an internal ticket to our engineering team to fix the root cause in the tick generation logic and will keep you posted on progress. At the moment we do not have ETA.
Additionally, I would like to inform that during the investigation we have impersonated your organization and we checked the shared dashboard, the involved insight in the Child and Parent workspace to understand the context.
Hi Marketa, I am glad to share that the bug has been fixed. Can you please confirm on your end?
1
m
Perfect, thank you!
🙌 1
m
Your welcome, Have a nice weekend!