I am trying to pass a parameter in a function, which I will use in a Highcharts file.
function getID (ID) {
chart+ID+.series[0].update({
....do something
)};
}
When I try to concatenate the ID that I get from the function, to the update call; I get an error saying
unexpected token "."
How do I use the ID in the update function? I thought that the + sign would concatenate strings, so
chart+ID+.series[0]
is the same as, with ID='1', to
chart1.series[0]