-
Notifications
You must be signed in to change notification settings - Fork 765
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
Example code for line chart not working. #594
Comments
<title>Chart_Tutorials</title>
<script src="angular.js" ></script>
<script src="Chart.js"></script>
<script src="angular-chart.min.js"></script>
|
I made some minor changes in the javascript given in the site, and it worked. See the code above. Hope it helps. |
@garretwilson did it work for you? |
I gave up and switched to Angular-nvD3, built on top of NVD3, in turn built on top of D3, the hugely extensive, flexible, and popular data-driven document library which goes far beyond charts. It uses SVG, and the data representation for a scatter plot is more intuitive that Angular Chart. Tip: Currently nvD3 only supports D3 v3.x. |
@garretwilson okay, This might not make any sense. But I only put the canvas element within a div and it worked The canvas needs to be in a div wrapper apparently .. hope it may help someone |
@Ygilany it worked! :) |
I'm trying out Angular Chart with Angular 1.5. I copied an example right off their home page:
I even copied the sample JavaScript into my controller. Yet absolutely nothing shows up.
In Bug #591, somebody else was having the same problem, but they closed that issue so I'm opening this one. I have also asked a question on Stack Overflow.
Their site looks so professional---surely their library isn't broken! I must be making some stupid mistake. Any ideas?
(On second thought, looking at Angular Chart GitHub project, it seems like it hasn't been updated for quite a while. Maybe I should try to find a different charting library for Angular.)
The text was updated successfully, but these errors were encountered: