Closed ScanThemes closed 4 years ago
You can generate arbitrary SVG code passing your function as the value of textFormat
option.
See this fiddle.
Be careful though. innerHTML
is used to insert the result of function call. All dynamics values must be escaped. (No need to escape value
and max
arguments to custom function, they are already formatted as numbers.)
@ScanThemes one more thing. I've just updated the repo. Please make sure to use the latest version.
@tigrr Excellent, thank you!
Is it possible to add additional text under the value? For instance:
Thanks.