Hi I believe i am using grafana v1.3.0 + security-01. I suspect it windows on the server side but definitely windows where i am developing. i really want to override the default font size i am seeing on a table template in my larger dashboard. i dont want to give up just yet. so far i tried modifying the query per one AI article i saw where the select looks something like SELECT ‘’ || sentence || ‘’ AS “Large Text Column” FROM [dashboard].[dbo].[NewsAndEvents] where… All i saw was the html and sentence syntax rendered as is in the dashboard. I got some advice from somebody at grafana who said flip over to multiple stat templates. He’s probably implying “or multiple text panels” too. I have to believe there is a way to do this. I dont want to affect anything else but my own dashboard. I think i see json code but wouldnt know what syntax and where to override something like this safely, if thats even possible.
-
What Grafana version and what operating system are you using?
-
What are you trying to achieve?
-
How are you trying to achieve it?
-
What happened?
-
What did you expect to happen?
-
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
-
Did you follow any online instructions? If so, what is the URL?
sowdenraymond at How to increase the text size of a table panel? - #5 by hodung says disabling something in an ini file (presumably server side) would allow me to have my css code (presumably somewhere in my dashboard) “respected”. but i dont see his post marked as an answer. Can someone tell me where i would change my code if this is a viable alternative? He didnt say where that code would be changed.
i played a little with a grid of stat panels choosing a text column for display and the issue i encountered there was that there is no way to align left the text value you choose in your query. I appended blanks to get it started moving left. i appended CHAR(10) ‘s but it basically stayed center. AI says you can pick align left for the alignment part of this panel’s properties but all i see is auto, horiz and vertical.
As it is described in the post you cited, you need to change disable_sanitize_html
to true
in ini file, then add to the text panel required changes to CSS you need:
Result would be like this for the whole page:
1 Like
looking at this now. bear with me.
thx ebabeshko but there is no text mode for my table. so i think and now see you are probably suggesting a grid of text templates/panels instead . we tried that but if im remembering correctly couldnt get them (text news/announcements) to justify left. I tried padding the returned column value with blanks or unprintable characters like tabs but to no avail. The sentences always ended up in the middle of the cell as if the blanks etc werent there. I think we’ve known all along how to change font on text panels using markup as i recall.
Another option is business text plugin wherein you can control everything size, color
1 Like