An open API service indexing awesome lists of open source software.

https://github.com/jscharting/jscharting-amd

Official JSCharting samples for RequireJS
https://github.com/jscharting/jscharting-amd

amd chart jscharting requirejs

Last synced: about 1 year ago
JSON representation

Official JSCharting samples for RequireJS

Awesome Lists containing this project

README

          

# JSCharting: Any Chart. Anywhere.

**JSCharting** is a JavaScript chart library for visualizing your data, providing resolution
independent results across all devices and platorms. Every JSCharting license includes the
full suite of 150+ advanced chart types, interactive stock charts and JSMapping at no additional charge.

## Official JSCharting examples for requirejs

This set of samples demonstrate how to use JSCharting as an amd module with RequireJS.

### How to use

Install the necessary packages including JSCharting.

```console
npm install
```

Now you can build an application.

```console
npm run build
```

Also you can run dev server http://localhost:5000/

```console
npm run start
```

### Hot it works

After build it copies all jscharting resources from node_modules to dist folder after that you can use it by require jscharting/dist/jscharting module.

```javascript
requirejs(['jscharting/dist/jscharting'], function (JSC) {
new JSC.Chart({
targetElement: 'chartContainer',
...
});
});
```

----