Giter VIP home page Giter VIP logo

aurelia-charts's People

Contributors

bas080 avatar doktordirk avatar ppvg avatar rwoverdijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aurelia-charts's Issues

Unable to find 'config.js' errors when using aurelia-cli

I am using aurelia-cli 0.23.0.

I installed aurelia-charts (and aurelia-charts-c3) using npm and updated aurelia.json vendors.js bundle dependencies to include:

          {
            "name": "aurelia-charts",
            "path": "../node_modules/aurelia-charts/dist/amd",
            "main": "aurelia-charts",
            "resources": [
              "component/chart-element.html",
              "component/chart-picker.html",
              "component/dimensions-picker.html"
            ]
          },

However, trying to run au run yields the following error (snippet):

Tracing aurelia-charts...
{ uid: 10,
  name: 'writeBundles',
  branch: false,
  error: 
   { Error: ENOENT: no such file or directory, open '/home/hans/workspace/contact-manager/aurelia-charts/config.js'
       at Error (native)
       at Object.fs.openSync (fs.js:640:18)
       at Object.fs.readFileSync (fs.js:508:33)
       at Object.exports.readFileSync (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/file-system.js:49:13)
       at fileRead (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/bundled-source.js:83:31)
       at Object.context.fileRead (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/amodro-trace/lib/loader/Loader.js:176:18)
       at Object.context.load (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/amodro-trace/lib/loader/Loader.js:357:30)
       at Object.load (eval at <anonymous> (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/amodro-trace/lib/loader/Loader.js:14:9), <anonymous>:832:29)
       at Object.fetch (eval at <anonymous> (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/amodro-trace/lib/loader/Loader.js:14:9), <anonymous>:822:66)
       at Object.check (eval at <anonymous> (/home/hans/workspace/contact-manager/node_modules/aurelia-cli/lib/build/amodro-trace/lib/loader/Loader.js:14:9), <anonymous>:854:30)
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/home/hans/workspace/contact-manager/aurelia-charts/config.js',
     moduleTree: [ 'aurelia-charts/decorator/chart' ],
     fileName: '/home/hans/workspace/contact-manager/node_modules/aurelia-charts/dist/amd/decorator/chart.js' },

Can't Properly Configure

I'm using the SPA Templates for ASP.NET Core as the base of an application
https://github.com/aspnet/JavaScriptServices

I created a base application and have been making additions to it. I installed Aurelia-charts according to the directions for Webpack in the instructions, but am confused by the following line:
"And add aurelia-charts in the coreBundles.aurelia section of your webpack.config.js"

There is no coreBundles.aurelia section in my webpack.config file (attached with a .txt extension) and I can't seem to find documentation on where it should go, or what the properties are. Can you clarify that?

When I add the .plugin calls described to the configure function, it basically breaks my app from loading. If I comment out plotly and charts, it still breaks. The only one that seems to work without stopping the app from loading is c3.
.plugin('aurelia-charts-plotly')
.plugin('aurelia-charts-c3')
.plugin('aurelia-charts', charts => {
charts.configure({
defaults: {
/* the default library type /
library: 'C3',
/
the default chart type */
type: 'line',

                /* what library to use for the chart type */
                libraries: {
                    bar: 'c3',
                    geo: 'datamaps'
                }
            }
        })
    });

webpack.config.js.txt

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.