Closed joaociocca closed 10 years ago
Hi,
I add to the mater branch the following options: Gauge Color (optional) - Set the color code dinamycally from the resultset for gauge backgound Mim Level Color (optional) - Set the color code dinamycally from the resultset for min level color Middle Level Color (optional) - Set the color code dinamycally from the resultset for middle level color Max Level Color (optional) - Set the color code dinamycally from the resultset for max level color
I guess make sense. Thanks. Joel
@joaociocca you said "value, value2, min, max", what is value2?
"value2" would fit in the suggestion of the secondary value I mentioned, for use like the marker in the CCC Bullet Chart Component
Awesome! I didn't think about dinamycally setting min/middle/max level colors!
@joaociocca Unfortunately, I guess your suggestion is not possible at the moment. https://github.com/toorshia/justgage/issues/110
However, you can play with the level colors from resultset or with extension points using the property customSectors: http://justgage.com/demos/custom-sectors/
Cheers!
Here I was, thinking about something I'm used to do with the CCC Bullet Component: two values displayed (here we use it for showing the "today" value and month-1 value). Since the "main" value is displayed by gauge filling, a slash, or a dot, or any marker on the gauge could be used for a "secondary" value.
Adding this to my previous suggestion on color, input for Gauge could be like: 1-title 2-main value 3-secondary value 4-min value 5-max value 6-color
Expanding even more this idea, it could be detected dynamicaly by the number of columns received. If 4 columns, the scenario would be the same as today: title, value, min, max. If 5 columns, would depend on detecting a color field... since it could be title, value, value2, min, max OR title, value, min, max, color. Finally, with 6 columns, it'd absolutely be the full configuration.