Reputation: 645
Let me try to explain.
I'm bringing the data:
[1, 3, 7, 8, 9, 2]
But for each one of these there are other values, like time and place. I would like to make a click function like:
click: function() {
testFunction(time.value,place.value);
}
Like this, that I click and it will call a javascript function that I could pass these other values? How can I store these values and send it? Where do I store other values, temp values to use in a function?
Found this demo, would be something like that: http://www.highcharts.com/demo/line-ajax
But I'm not showing anything on the screen, I would like to show only when clicked. this.y and this.x is there on the charts already :(
Thanks.
Upvotes: 0
Views: 97
Reputation: 37578
You can use objects for points.
data:[{
y:10,
additional:'myparametervalue'
},{
y:10,
additional:'myparametervalue'
}]
Edit:
Found an answer, with an example and more info about how do it from a similar question.
Upvotes: 1