ElementStacks
HTML
<script src="http://highcharts.com/js/testing.js"></script>
<div id="charts">
<div id="container" style="height: 400px; width: 500px"></div>
</div>
JavaScript
renderChart = function(x) {
x = parseInt(x);
chart.addSeries({
type: 'scatter',
data: [
[x, 44],
[x, 50],
[x, 55]
]
});
}
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
xAxis: {
allowDecimals: false,
labels: {
formatter: function() {
return '<a href="javascript:renderChart(\''+this.value+'\')">'+ this.value +'</a>';
}
}
},
series: [{
data: [29.9, 71.5, 106.4]
}]
});