Enables / Disables Chart interactivity like toolTip, mouse and touch events
var chart = new CanvasJS.Chart("container", { . . interactivityEnabled: false, . . }); chart.render();
Comments 7
Server Side Technologies |
Front End Technologies |
Contact |
|
---|---|---|---|
ASP.NET MVC Charts | JavaScript Charts | FAQs | |
PHP Charts | jQuery Charts | Sales Enquiries | |
Spring MVC Charts | React Charts | Support Forum | |
JSP Charts | Angular Charts | Careers | |
JavaScript StockCharts | |||
Privacy Policy © fenopix
Hi, i am using your charts and they are quite awesome :-)
Now, here is the issue i am facing.
“Due to touch events being registered when trying to it’s not possible to scroll past the chart.” . i overcome this using
interactivityEnabled: false;
But, i want to make markers clickable. how i can do that ?
Rehan,
We’ve had once handled this issue in the past. May I know which device & browser you are using. Also let us know the CanvasJS version that you are using.
Lets move this discussion to forum. Please reply back here.
—
Sunil Urs
No, let me explain, again.
in your above example, just set
interactivityEnabled: false,
now , graph work perfectly in all deceives BUT, ‘onclick’ event is disabled. i want ‘click’ enabled’ on markers. i am using graph type ‘splineArea’
Is there a way to have interactivity disabled and still have the legends show? This might sound contradicting so let me explain a bit.
Basically we like the charts and the hover information, we just don’t want the user to be able to click the pie and explode the slices. I’ve looked at adding a click event to each datapoint and setting the explode to false for the datapoint every click, but no luck.
Any information to help me?
Sam,
If you are just looking for a way to disable exploding of pie, here is an example.
Thanks for this, I was along the same lines, but was trying to add a click within each datapoint, not on the array. But I feel I would never have found this without this response.
We just release v1.8.1 Beta with explodeOnClick feature which will allow you to do the same using the api directly.