Home
> Discussions & Support
> Topic
Line Graph - Clickable Points
Posted by United544
Line Graph - Clickable Points October 26, 2009 08:25PM |
Registered: 14 years ago Posts: 4 |
Hi,
We are looking at purchasing the licensed versoin of JSCharts; however, we really need to have the points on the line graph "clickable" (to go to a separate page, for example). Is there any chance that this feature could be added relatively soon?
Thanks for your help and support.
Sincerely,
Chris Adams
We are looking at purchasing the licensed versoin of JSCharts; however, we really need to have the points on the line graph "clickable" (to go to a separate page, for example). Is there any chance that this feature could be added relatively soon?
Thanks for your help and support.
Sincerely,
Chris Adams
Re: Line Graph - Clickable Points October 27, 2009 07:14AM |
Registered: 15 years ago Posts: 117 |
Hi,
We will implement this feature somewhere in November, can't say exactly when though. We are thinking about something similar to the tooltip circles, but with a custom Javascript event attached.
Sabin
--------------------
JS Charts - Created by Smartketer LLC
We will implement this feature somewhere in November, can't say exactly when though. We are thinking about something similar to the tooltip circles, but with a custom Javascript event attached.
Sabin
--------------------
JS Charts - Created by Smartketer LLC
Re: Line Graph - Clickable Points October 27, 2009 01:48PM |
Registered: 14 years ago Posts: 5 |
If you don't need to know which line was clicked, you can simply capture click events inside your chart container. jQuery example:
$('#chartContainer div').live('click', function(e) {
if ($(this).attr('id').substr(0, 8) != 'trigger_') {
return;
}
// Do something
});
.live() will monitor all DIVs, even if you re-drew the chart with new data.
Unfortunately, this isn't really helpful if you need to know information about that point (which data-set, etc.).
We'd definitely love to be able to attach various events to JSCharts. Ex:
myChart.setTooltipClickHandler(function(pass info about data-set) {
...
});
Looking forward to November
$('#chartContainer div').live('click', function(e) {
if ($(this).attr('id').substr(0, 8) != 'trigger_') {
return;
}
// Do something
});
.live() will monitor all DIVs, even if you re-drew the chart with new data.
Unfortunately, this isn't really helpful if you need to know information about that point (which data-set, etc.).
We'd definitely love to be able to attach various events to JSCharts. Ex:
myChart.setTooltipClickHandler(function(pass info about data-set) {
...
});
Looking forward to November
Re: Line Graph - Clickable Points October 28, 2009 02:45PM |
Registered: 14 years ago Posts: 4 |
>> We are thinking about something similar to the tooltip circles, but with a custom Javascript event attached.
That would be perfect. If we could attach a javascript event (and pass it some data) when the tooltip circle was clicked, that would meet our needs exactly.
Thanks for adding this (or a similar) feature!
That would be perfect. If we could attach a javascript event (and pass it some data) when the tooltip circle was clicked, that would meet our needs exactly.
Thanks for adding this (or a similar) feature!
Sorry, you do not have permission to post/reply in this forum.