How Do I Add Tooltips Outside Of ZingChart?

To add tooltips outside of ZingChart you will need to utilize our API to grab the value and plain vanilla JS, or a library, to update the DOM with the value. My suggestion to mimics tooltips functionality would be registering the node_mouseover and node_mouseout events to do this. It would look something like this.

zingchart.node_mouseover = function(e) {
   document.getElementById('output').innerHTML = e.value; 

Have more questions? Submit a request


Please sign in to leave a comment.