Webpack / ECMAScript / AnyChart example This example shows how to use AnyChart with your ECMAScript code using webpack bundler.

View on GitHub

Running

Clone this repository:


$ git clone git@github.com:anychart-integrations/anychart-es6-webpack.git
                

Navigate to the example directory:


$ cd anychart-es6-webpack
                

To install dependencies run this command:


$ npm install
                

To bundle project run following command, it runs webpack with it's config (see package.json):


$ npm start
                

Now you may open dist/index.html file to see result.


Package directory


anychart-es6-webpack/
    dist/
        bundle.js           # bundled javascript file
        index.html          # html example file
    src/
        index.js            # main js file
        format.js           # module contains function
    package.json            # package file
    webpack.config.js       # webpack config
    README.md
    LICENSE
                

Further Learning


License

AnyChart ES6 webpack integration sample includes two parts:

  • Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with ES6 and webpack. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under Apache 2.0 License.
  • AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details here.

If you have any questions regarding licensing - please contact us. sales@anychart.com