-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do I access the amchart object , so I can attach event? #73
Comments
@yukiachen |
@tejasatara I think this is the answer to your question. I'll copy it here as well. I just had to figure this out as well and I think the right way to do this is to broadcast the right events to get the chart to redraw. You do this in two steps:
app.controller('myController', ['$scope', '$rootScope', function ($scope, $rootScope) {
|
I having this same issue with no success. Is it possible you could provide a JSFiddle example? |
Hi, to answer the original question, you do have access to the chart object from $scope. Just set a reference to "chart" on the element. For example:
Then you can access it in the scope:
Hope that helps. |
@seetsy Not working. the chart attributes ....can't access the object => result undefined |
@obidano This code snippet should solve your problem. |
I want to make the chart clickable, looking at amchart docs, I should be able to do the following , but I don't know how to access chart obj using amcharts-Angular
chart.addListener("clickGraphItem", handleClick);
This plunk http://jsfiddle.net/amcharts2/cv8gg/ is what I want to do using amcharts-angular . do you know how?
The text was updated successfully, but these errors were encountered: