Hi I am using RGraph in my angular 7 application. all working as expected. But i need a feature as below.
I want to get the value of xaxislabel on clicking on it. Please let me know if anyone has answer.
Thanks in advance
I have tried below but not working
document.getElementsByClassName('rgraph_accessible_text_xaxis_labels')[0].addEventListener('click', function(){
alert('text'+ document.getElementsByClassName('rgraph_accessible_text_xaxis_labels')[0].nodeValue);
});
You were close - I've made a demo with a few alterations:
There's a codepen here that demonstrates it:
https://codepen.io/rgraph/pen/yLaEQWb