Code Monkey home page Code Monkey logo

pivot-angular's Issues

Error : Cannot read property 'Date' of undefined (2.7.1)

Hello Flexmonster Team,

I use your component for Angular 7.2.9 app, since the last update (2.7.1), I got an error when i try to use pivot component :
image

PS : Worked on :
"flexmonster": "2.6.15",
"ng-flexmonster": "2.6.15-1"

Cordialy, Bari.

Unable to create the Component. DOM element with ID 'pivotContainer' is not found

My .html file

<div id="pivotContainer">
<fm-pivot [toolbar]="true"></fm-pivot>
</div>

.ts file

jsonData = [
   {    
    "Color" : "green",
    "Country" : "Canada",
    "State" : "Ontario",
    "City" : "Toronto",
    "Price" : 174,
  	 "Quantity" : 22
   },
   {
    "Color" : "red",
    "Country" : "USA",
    "State" : "California",
    "City" : "Los Angeles",
    "Price" : 166,
    "Quantity" : 19
   }
];

pivot = new Flexmonster({
   container: "pivotContainer",
   toolbar: true,
   report: {
       dataSource: {
           data: this.jsonData
       },
       slice: {
           rows: [
               { uniqueName: "Color" },
   	        { uniqueName: "[Measures]" }
           ],
           columns: [
               { uniqueName: "Country" }
           ],
           measures: [
               {
                   uniqueName: "Price", 
   	            aggregation: "sum" 
               }
           ]
       }
   }
});

Error while flexmonster create angular -r

4965 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
4966 verbose node v16.6.2
4967 verbose npm v7.20.6
4968 error code 1
4969 error path /home/mysys/flexmonster/flexmonster-angular-project/node_modules/node-sass
4970 error command failed
4971 error command sh -c node scripts/build.js
4972 error Building: /usr/local/bin/node /home/mysys/flexmonster/flexmonster-angular-project/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.