You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was wondering if there is a way to set the font color for number display chart to depend of the value of the "%number". For example the color of the text should be in green if the value is positive and red if negative.
I am sorry if my question is not clear or has already been answered.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
It's not really something you should do directly with dc. Perhaps create a on('postRender') function to check the value and assign a styling based on this?
I agree with @AlanKavanagh, what we used to call a "renderlet" should work fine here. A "pretransition hook" (#806) will be even better, because you might see a delay before the color is applied with a postRender or renderlet.
Hello,
I was wondering if there is a way to set the font color for number display chart to depend of the value of the "%number". For example the color of the text should be in green if the value is positive and red if negative.
I am sorry if my question is not clear or has already been answered.
Thank you in advance.
The text was updated successfully, but these errors were encountered: