anychart-integrations / webpack-typescript-example

Webpack / TypeScript / AnyChart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnyChart - Robust JavaScript/HTML5 Chart library for any project

Webpack / TypeScript / AnyChart example

This example shows how to use Anychart library within the TypeScript project using webpack bundler.

Running

Clone this repository:

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

Navigate to the example directory:

$ cd webpack-typescript-example

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

webpack-typescript-example/
    dist/
        bundle.js           # bundled javascript file
        index.html          # html example file
    index.ts                # main TypeScript code
    package.json            # package file
    webpack.config.js       # webpack config
    tsconfig.json           # typescript config
    README.md
    LICENSE

Further Learning

License

AnyChart Webpack TypeScript integration sample includes two parts:

  • code of the integration sample that allows to use Javascript library (in this case, AnyChart) with Webpack and TypeScript. 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 Analytics

About

Webpack / TypeScript / AnyChart

License:Apache License 2.0


Languages

Language:TypeScript 67.8%Language:JavaScript 32.2%