How would I handle events? I’ve looked at the documentation and tried:
<script type="text/javascript">
$(function() {
var chart = spjs.charts.data.chartData
google.visualization.events.addListener(chart, 'ready', function() {
alert('Chart is ready')
$("a.active").closest('td').addClass("td-active")
$("a.new").closest('td').addClass("td-new")
$("a.deleted").closest('td').addClass("td-deleted")
});
})
</script>
I put this in my spjs_charts_master.html at the bottom but it’s not firing at all.