Open guze0001 opened 4 years ago
adding adding text label functionality
Does anyone was able to make it work ? I have no error but no text label displayed.
@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.
i've got the particular commit but still the text is not displayed.. anyone else with the similar issue?
not working
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. }