I am usign Highcharts plugin for Graphs... this is my code:
$(function () {
$('#graph1').highcharts({
chart: {
type: 'bar'
},
xAxis: {
categories: mesesGraph1
},
yAxis: {
title: {
text: 'WO / month'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: arrayFocal
});
});
Now I want a button that onclick() changes the type of my graph... is there a way to do this?