admin管理员组文章数量:1323191
I would like to know if there is a way to change the color and possibly the decoration of the text in the Value parameter of justGage after the gauge is created.
Ultimately, I would like to be able to change the color of the text to blue with underline so as to resemble a link.
Thank you.
I would like to know if there is a way to change the color and possibly the decoration of the text in the Value parameter of justGage after the gauge is created.
Ultimately, I would like to be able to change the color of the text to blue with underline so as to resemble a link.
Thank you.
Share Improve this question edited Mar 14, 2014 at 23:32 Mo. 27.5k36 gold badges166 silver badges232 bronze badges asked Jan 9, 2014 at 21:13 guiskjguiskj 471 silver badge5 bronze badges 2- What have you tried so far? You might want to try and create a jsFiddle to demonstrate your issue. – Code Maverick Commented Jan 9, 2014 at 21:17
- Please post an example @ jsfiddle – Yuriy Galanter Commented Jan 9, 2014 at 21:24
1 Answer
Reset to default 7In looking at the site there are examples of elements you can edit to customize your style.
GO to "Demos > Customize Style" and you will see this list:
Here's a list of all parameters you can setup your gauge with:
id : string container element id
title : string gauge title text
titleFontColor : string color title text
value : int value gauge is showing
valueFontColor : string color of value text
min : int minimum value
max : int maximum value
showMinMax : bool hide or display min and max values
gaugeWidthScale : float width of the gauge element
gaugeColor : string background color of gauge element
label : string text to show below value
showInnerShadow : bool whether to display inner shadow
shadowOpacity : float shadow opacity, values 0 ~ 1
shadowSize : int inner shadow size
shadowVerticalOffset : int how much is shadow offset from top
levelColors : array of strings colors of indicator, from lower to upper, in hex format
levelColorsGradient : bool use gradual or sector-based color change
labelFontColor : string color of label showing label under value
startAnimationTime : int length of initial load animation
startAnimationType : string type of initial animation (linear, >, <, <>, bounce)
refreshAnimationTime : int length of refresh animation
refreshAnimationType : string type of refresh animation (linear, >, <, <>, bounce)
Now, whether or not you can adjust these values AFTER the gauge is made, that I don't know. i have a feeling that you cannot do that.
本文标签: javascriptHow to change color of value in justGageStack Overflow
版权声明:本文标题:javascript - How to change color of value in justGage - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742126532a2421968.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论