# Makie inspector labels don't work with rich text

**URL:** <https://discourse.julialang.org/t/makie-inspector-labels-dont-work-with-rich-text/134274>\
**Category:** General Usage\
**Tags:** makie, glmakie\
**Created:** [December 2, 2025, 4:52am UTC](https://discourse.julialang.org/t/makie-inspector-labels-dont-work-with-rich-text/134274 "2025-12-02T04:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AUK1939](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Post date:** [December 2, 2025, 4:52am UTC](https://discourse.julialang.org/t/makie-inspector-labels-dont-work-with-rich-text/134274/1 "2025-12-02T04:52:41Z")

</div>

The code below plots a simple bar chart. If I pass `custom_inspector_label_plain` to `barchart!` everything works fine. But on GLMakie version v0.13.7 using rich text for inspector labels fails, see `custom_inspector_label_rich` (this used to work in previous versions). Anyone else observe this behaviour?

```julia-auto
using GLMakie
GLMakie.activate!()

labels = ["Alpha", "Beta", "Gamma", "Delta"]
values = [12.5, 8.0, 15.0, 10.5]
colors = [:skyblue, :lightgreen, :gold, :orchid]

fig = Figure(resolution=(650, 400))
ax = Axis(fig[1, 1]; ylabel="Value", xlabel="Category", title="RichText inspector")

function custom_inspector_label_rich(self, idx, pos) 
        val = round(values[idx]; digits=2)
        return Makie.rich(
            Makie.rich("$(labels[idx])"; font=:bold, color=:purple),
            "\n",
            Makie.rich("Value: $val"; color=:green)
        )
end

function custom_inspector_label_plain(self, idx, pos) 
        val = round(values[idx]; digits=2)
        return "$(labels[idx])" * "\n" * "Value: $val"
end

barplot!(ax, values;
    color=colors,
    width=0.6,
    strokewidth=0,
    inspectable=true,
    inspector_label = custom_inspector_label_plain
)

ax.xticks = (1:length(values), labels)
DataInspector(fig)
fig

```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [December 2, 2025, 9:05am UTC](https://discourse.julialang.org/t/makie-inspector-labels-dont-work-with-rich-text/134274/2 "2025-12-02T09:05:02Z")

</div>

Please open an issue on GitHub, easier to keep track of for this kind of thing 🙂

---

<div class="post-metadata">

**Author:** ![AUK1939](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Post date:** [December 2, 2025, 10:28am UTC](https://discourse.julialang.org/t/makie-inspector-labels-dont-work-with-rich-text/134274/3 "2025-12-02T10:28:48Z")

</div>

Thanks added github issue [here](https://github.com/MakieOrg/Makie.jl/issues/5450)
