How to Rotate X Tick Label in Canvas/CSS?

Hi, there!

I'm trying to rotate the X Tick Label using CSS, but without sucess

This is my chart:

And the expression:

| essql
query="SELECT acao, count(id_do_processo) AS conta FROM "mercado_157_processos"
WHERE NOT(acao IS null)
| staticColumn "total" value={math "sum(conta)"}
| mapColumn "percentual" fn={math "conta/total" | formatNumber "0.00%"}
| pointseries x="acao" y="conta" text="percentual" color="acao" size="acao"
| plot defaultStyle={seriesStyle bars="1" fill=1} palette={palette "#FFFF00" "#0000FF" gradient=true}
font={font family="Open Sans, Helvetica, Arial, sans-serif" size=10 align="center" color="#000000" weight="bold" underline=false italic=false} legend=false xaxis=true yaxis=true
| render
css=".flot-x-axis .flot-tick-label { white-space: nowrap; transform: translate(-9px, 0) rotate(-60deg); text-indent: -100%; transform-origin: top right; text-align: right !important;

What am I doing wrong?

Version: Kibana 7.1.1

I was able to get close to what you are requesting. You may be able to use this as a starting point:

.flot-x-axis div {
    white-space: nowrap;
    transform:  rotate(-90deg);
    text-indent: -100%;
    transform-origin: top center;
    text-align: right !important;
    top: 280px !important;

Thanks, Wylie! Yes, that's it!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.