
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
anychart-angular2
Advanced tools
AngularJS v2.x directives for AnyChart provide an easy way to use AnyChart JavaScript Charts with Angular2 Framework.
You can install Angular2-plugin using npm, bower or yarn:
npm install anychart-angular2bower install anychart-angular2yarn add anychart-angular2You can download compiled Angular2 components directly from the dist folder.
Please, note: components.js and components.d.ts files export basic Anychart-Angular2 integration functionality.
Here's a basic sample that shows how to quickly create an Angular2 application with AnyChart component:
<!DOCTYPE html>
<html>
<head>
<title>Angular Quick Start</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<!-- Add zone.js (https://github.com/angular/zone.js/) -->
<script src="node_modules/zone.js/dist/zone.js"></script>
<!-- Add modules loader -->
<script src="node_modules/systemjs/dist/system.src.js"></script>
<!-- Include anychart component -->
<script src="node_modules/anychart/dist/anychart-bundle.min.js"></script>
<!-- General section, this configuration adds all the requirements to run -->
<script src="systemjs.config.js"></script>
<script>
//Import of application to run.
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>
<body>
<my-app>Loading AppComponent content here ...</my-app>
</body>
</html>
npm install command.npm run start command.If the integration is cloned from GitHub and Node Package Manager (npm command) is available in command line, the following command compiles source code to dist/ directory:
npm run build
If needed, package.json of demo-application can be configured to declare custom run-commands
and to add required dependencies excepting already included.
Run npm install command to load all required npm modules.
Configure systemjs.config.js to declare the mapping of dependencies of
application (see any demo
to see the basic configuration). In 'map'-section AnyChart integration library is declared:
...
'anychart-angular2': 'node_modules/anychart-angular2'
'anychart-angular2': {
main: 'index'
}
These actions allow to use anychart-angular2 integration in an application like one described in Quick start.
Since 'app' folder is declared in systemjs.config.js as application root
directory, the application's Angular2 modules and components can be created
right there.
βββ def
β βββ anychart.d.ts
β ...
βββ dist
β βββ anychart.directive.d.ts
β βββ anychart.directive.js
β ...
βββ src
β βββ anychart.directive.ts
β βββ anychart.service.ts
β ...
β components.d.ts
β components.js
β package.json
β LICENSE
β README.md
β ...
def/anychart.d.ts - Anychart typescript definition file. Used to correctly compile source code to dist/ directory.
dist/ -
Output directory that contains compiled js and d.ts files. The general component
declarations (components.js and components.d.ts) rely on this directory
content.
src/ - Source code directory. Contains Angular2-compatible components to provide AnyChart integration.
components.d.ts and components.js - Components definition. Relies on dist/ directory content.
package.json - Package manager configuration file. Also contains descriptions of available run commands (including build command) and the list of dependencies.
See these samples to learn how things work:
anychart-stage
directive to build an interactive dashboard.AnyChart Angular2 plugin includes two parts:
If you have any questions regarding licensing - please contact us. sales@anychart.com
FAQs
Angular2 directives for AnyChart
The npm package anychart-angular2 receives a total of 111 weekly downloads. As such, anychart-angular2 popularity was classified as not popular.
We found that anychart-angular2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.