I'm using google charts in a website and want to make the column names into links rather than strings.
But when I put the <a href etc> tags into the chart it displays them as strings.
I have set {allowHtml:true} but still no luck displays the column name as <a href="
http://www.w3schools.com">Visit W3Schools</a>' rather than Visit W3Schools and is a string not a link.
The code I am using is as follows:
<script type="text/javascript">
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Job State', 'Job Numbers'],
]);
// Create and draw the visualization.
new google.visualization.ColumnChart(document.getElementById('visualization')).
draw(data,{allowHtml:true},
{title:"Current Jobs Statuses",
width:600, height:400,
hAxis: {title: "Job Type"}}
);
}
google.setOnLoadCallback(drawVisualization);
</script>