I am trying to merge the excellent solution for using logarithmic Y axis in pgfplots polar charts with the excellent solution for adding colors and arrow heads decorations to pgfplots polar chart. Each of the solutions works great separately (see pictures in these links).
Unfortunately an attempt to combine them into one working example fails:
\documentclass[]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}[>=stealth,
ymin=0, ymax=32,
%ytick=\empty, axis y line=none,
point meta ={rawy},
y coord trafo/.code =\pgfmathparse{log10(#1)},
y coord inv trafo/.code=\pgfmathparse{10^#1},
xticklabel=$\pgfmathprintnumber{\tick}^\circ$,
every axis plot/.append style={ultra thick},
visualization depends on={x\as\myx},
visualization depends on={y\as\myy},
scatter/@pre marker code/.append code={
\pgftransformreset
\pgfmathsetmacro{\mycolor}{(abs(sin(\myx))<0.01 ? "green" :
(abs(cos(\myx))<0.01 ? "red" : "blue"))}
%\typeout{\myx,\myy,\mycolor}
\draw[->,color=\mycolor] (axis cs:0,0) --
(axis cs:\myx,\myy) node[anchor=\myx-180]{\pgfmathprintnumber{\myy}\%};
},
]
\addplot+ [scatter,draw=none]
coordinates {(0,21.6) (180,15.8)
(90,11.4) (270,10.6)
(30,5.3) (60,5.5) (120,4.0) (150,6.6) (210,5.2) (240,5.5) (300,3.4) (330,5.2)};
\end{polaraxis}
\end{tikzpicture}
\end{document}
What am I missing?

