ZingChart: How to make scale labels clickable and linkable
The following code works for making the scale labels clickable. You can add link click functionality with API.
},
"scale-x": {
"labels": ...
"item":{
"angle":-30,
flat: false // @HERE this attribute makes text clickable. Adds an event listener on the text when being rendered
}zingchart.bind(null, 'label_click', function(e) {
console.log(e);
window.location(...)
});