bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

adding text label functionality #228

Open guze0001 opened 4 years ago

guze0001 commented 4 years ago

Normally, we can just show values as label, but if we want to add a prefix text before the label we can use "staticLabelsWithText" sample usage: staticLabelsWithText: { font: "13px arial", // Specifies font labels: [ {label:"Jan",value:50}, {label:"Feb", value:125}, {label:"Mar",value:200}, {label:"Apr",value:275}, {label:"May",value:375}, {label:"June",value: 475} ], color: "#000000", // Optional: Label text color fractionDigits: 0 // Optional: Numerical precision. 0=round off. }

guze0001 commented 4 years ago

adding adding text label functionality

lironesamoun commented 4 years ago

Does anyone was able to make it work ? I have no error but no text label displayed.

Suraj1127 commented 3 years ago

@lilouch Did you download the JS file with this change? It has not been merged into the base branch, so you should download the particular file of this commit.

sugapirapagaran commented 2 years ago

i've got the particular commit but still the text is not displayed.. anyone else with the similar issue?

mahmudtopu3 commented 1 year ago

not working