Is it possible to insert custom HTML-code as a xaxisLabel of a bar - graph?
Like
xaxisLabels: ['<i class="fa fas fa-check fa-2x"></i>']
In the result, the closing-Tag (</i>) is missing.
'] In the result," /> '] In the result," /> '] In the result,"/>
Is it possible to insert custom HTML-code as a xaxisLabel of a bar - graph?
Like
xaxisLabels: ['<i class="fa fas fa-check fa-2x"></i>']
In the result, the closing-Tag (</i>) is missing.
There's no option to add custom HTML to labels but since the labels are DOM nodes (if you're using DOM text - which is on by default) you can manipulate them to you hearts content that way. Here's an example:
And on codepen:
https://codepen.io/rgraph/pen/poEOKPV
EDIT:
In addition you could also use the RGraph.text.find() function after you create the chart like this: