Add bar legend for a different function

Hello everyone,
Here, I want to add bar legend showing values of g[t]. Is there any way to do it? Thanks in advance.

I would do it with DensityPlot:

g[t_] := t^3 + 3*t + 12;
DensityPlot[g[Norm[{x, y}]],
 Element[{x, y}, Annulus[{0, 0}, {1, 2}]],
 PlotLegends -> Automatic]

Note, Here I have plotted f[t] and I need bar legend showing g[t]. That is the main issue here.

Try this:

g[t_] := t^3 + 3*t + 12;
DensityPlot[g[Norm[{x, y}] - 1],
 Element[{x, y}, Annulus[{0, 0}, {1, 2}]],
 PlotLegends -> Automatic,
 ColorFunction -> "SolarColors"]