-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PivotTable with AngularJS #208
Comments
👍 |
+1 |
awsome |
This is also related: #272 |
Reports an error when we use it the above example, any idea why? This is for the line |
@mreddimasi if you're seeing that error, it means you have not loaded the |
@nicolaskruchten Thanks you so much, pivot.js was not loaded indeed ( I had it in the wrong location, which was getting cleared when using through yeoman generators). Included pivot.js and pivot.css Faced with new error html is as below line # 28 is in the code below pivot.controller.js (function() { function PivotCtrl($scope, $http) {
} |
I'm not really well-positioned to support this AngularJS contribution, so I'll defer to the original author.... |
Hello |
@OscarAgreda Thanks! Are you able to create a Gist at https://gist.github.com with this instead of posting an attachment or screenshots of code? I think it would work better :) |
yes, Thanks, here it is |
@OscarAgreda @nicolaskruchten Thank you so much for the clarification and your help Was able to display the UI, but all the styles are missing, I can see it as below. I've included the pivot.css. Not sure if the problem is with having bootstrap also (which could have css-reset), are we seeing a similar behavior. Will try disabling bootstrap and check |
created a Gist for it https://gist.github.com/9376bf9320fa06d60837 |
Please ignore my comments, the problem was with improper import again and it works. Thank you so much again |
Glad it all worked out :) |
pivot directive |
+1 |
I am using pivot.js with angularjs and loading all dependencies with Require.js. I want to use Bar chart and Area chart, but I am getting error as "ReferenceError: c3 is not defined". what is the meaning of this error. If possible post some sample code how to load dependencies (like c3.min.js, d3.min.js and so on...) |
You just need to load c3.min.js somewhere... The C3 example has that: http://nicolas.kruchten.com/pivottable/examples/c3.html |
I was able to generate the chart without angularJS, but when I am trying to generate the chart with AngularJs I am getting error as "ReferenceError: c3 is not defined". I am unable to load c3.js using Require.JS. Any thoughts on this? |
Sorry, I have no idea how to deal with C3/Require/Angular integration issues, I just build the PivotTable :) Perhaps StackOverflow would be able to help you with this particular integration task. |
Hello, yes StackOverflow is best hope to get it solved. |
As I am getting "ReferenceError: c3 is not defined" error, Can I pass C3 as input parameter to c3_renderers.js ? |
Below is my sample code, is there any thing wrong
|
Issue got resolved. Below is the code. require(["d3"], function(d3) { Thanks for the information |
so you just added "c3" in the same way I showed you how i add "d3", right |
Yes |
If it helps anyone with a simlar need to my own, here is the Angular directive threw together based on the one @Angularjschile made that supports the ability to switch between pivot and pivotUI to allow for edit and display views. https://gist.github.com/c0r3yz/8ba37a3009e2a719210c |
Hi @OscarAgreda , Is there any way to implement paging for big amount of data. Thanks, |
hi @sanskith, how about get data from url ? |
I am using angular (material ui), Now I am facing error How I can resolve this issue.
|
Does anyone on this thread want to help me build an "official" Angular connector for this library? I'm getting a lot of questions about it but I'm a React guy not an Angular guy so I'd need a bit of guidance :) |
@nicolaskruchten please do let me know how I can help to port to Angular. Would be delighted to be part of this initiative. |
@anandgupta08 unfortunately I'm no longer really available to work on an Angular port... but if you want to make one I might be able to advise a bit :) |
Here is a simple way of using this awesome pivot table with angular without building a directive.
HTML VIEW http://grab.by/A0FW
github did not allow me to paste html , so here is the image
ANGULAR CONTROLLER
'use strict';
(function () {
angular.module('app').controller('productPivot', productPivot);
function productPivot($scope, $http) {
$scope.products = [];
getProducts();
})();
you can also use d3
html http://grab.by/A0H8
js http://grab.by/A0H4
ui http://grab.by/A0Ha
and if you want to go "fully loaded" , by including Google Charts
on the index.html http://grab.by/A0IQ
on the view http://grab.by/A0IU
JS http://grab.by/A0J0
Thanks Nicolas, you rock
The text was updated successfully, but these errors were encountered: