Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-fusioncharts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-fusioncharts

## Installation

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by175%
Maintainers
1
Weekly downloads
 
Created
Source

angular2-fusioncharts

Installation

To install this library, run:

$ npm install angular2-fusioncharts --save

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { FusionChartsComponent } from 'angular2-fusioncharts';

@NgModule({
  declarations: [
    AppComponent,
    FusionChartsComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    LibraryModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<fusioncharts
    width="600"
    height="350"
    type="Column2D"
    dataFormat="JSON"
    dataSource=`{
          "chart": {
              "caption": "Harry's SuperMart",
              "subCaption": "Top 5 stores in last month by revenue"
          },
          "data": [
              {
                  "label": "Bakersfield Central",
                  "value": "880000"
              },
              {
                  "label": "Garden Groove harbour",
                  "value": "730000"
              },
              {
                  "label": "Los Angeles Topanga",
                  "value": "590000"
              },
              {
                  "label": "Compton-Rancho Dom",
                  "value": "520000"
              },
              {
                  "label": "Daly City Serramonte",
                  "value": "330000"
              }
          ]
      }
    `
></fusioncharts>

Development

To generate all *.js, *.js.map and *.d.ts files:

$ npm run tsc

To lint all *.ts files:

$ npm run lint

Demos and Documentation

Keywords

FAQs

Package last updated on 14 Feb 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc