mad1 - Hi Team , I want to create custom chart...
Hi Team ,
I want to create custom chart for KPI, where I can add background color to it based on condition, is it possible/ is there any method to implement that in the ThoughtSpot platform or through ThoughtSpot Dev Feature, currently we are using TS Software version 10.0.1. Thanks

15 Replies
This should be possible. you can use this
https://developers.thoughtspot.com/docs/theme-builder to play around with CSS variable and figure out how to do this
Theme builder Playground
ThoughtSpot's theme builder allows you to create custom themes for your ThoughtSpot instance. You can customize the colors, fonts, and other visual elements of the ThoughtSpot interface to match your brand identity.
Oh I just saw you want it ased on condition, that might not eb possible though. cc @Ruchi Anand to suggest if there is some way
The requirement is to change color only for KPI chart and not background throughout dashboard, as theme background changed it overall. The playground seems to be for Cloud and we are using software in that case. Will it still work ?.
It probably should, though some variables might not be available. Have you tried using custom CSS to get this effect?
I checked, but seem to be like viz css can not be controlled much on viz components like KPI bg color, guide me please if wrong.
Hi @R19
Yes, it's possible using custom CSS. Can you share the css you are using ?
Also, You can try it out in the playground, it should work.
Hi @Ruchi Anand and @shikharTS , I want bg color for KPI viz to be changed according to the viz value i.e. if value > 100 red, 100 > value > 50 then Yellow and value < 50 then Green. I see value with CustomCSS i can change the bg color of viz, but can this be also implemented ?
I do not think we have provision for this right now @R19 . @Ruchi Anand to suggest otherwise
Thanks @shikharTS for your view, Hi @Ruchi Anand , Can you please share your suggestion , as we are doing POC for this use case, would be of great help share your thoughts as well, so that i can then proceed further.
@jbc can you also help here?
Hi Folks, It would be of great help if anyone of you could help me conclude of the solution, as we have POC going on and I have to present and streamline solutions asap
@R19 I do not think we have provision for this directly right now, you can read the value through a data event and see if we can change the background of KPI based on the data.
Okay, Thanks @shikharTS
The customCSS input currently is a static input, and cannot change based on the output of the data. I don't think we have any options currently to achieve what you are looking for. Can you raise a ticket, and we can figure out, if there is any solution we can come up with?
Okay, Thanks @jbc