fusioncharts / angular-fusioncharts

Angular Component for FusionCharts JavaScript Charting Library
https://fusioncharts.github.io/angular-fusioncharts/#/ex1
Other
55 stars 37 forks source link

How to include licence with this library ? #11

Closed sijeesh-02 closed 5 years ago

sijeesh-02 commented 7 years ago

My organization has a licence bought for version 3.4. Can that or for the record any licence bout be used with this plugin (angular2-fusioncharts).

rousan commented 6 years ago

@feelthescintillation Yes, you can use your licensed version of FusionCharts library with angular2-fusioncharts plugin. Please follow the steps below to achieve this:

Step 1: create a folder fusioncharts in your project root directory and copy licensed version of fusioncharts library files to this folder. Step 2: Import fusioncharts library in your AppModule as follows:

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

// Import your licenced version of fusioncharts here
import * as FusionCharts from '../../fusioncharts';
import * as Charts from '../../fusioncharts/fusioncharts.charts';
import * as FintTheme from '../../fusioncharts/themes/fusioncharts.theme.fint';

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

FusionChartsModule.fcRoot(FusionCharts, Charts, FintTheme);

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FusionChartsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Let me know if you face any problem.

ashok1994 commented 5 years ago

@feelthescintillation We recommend now to use a angular-fusioncharts , Only changed step will be in step 2 Change the following line import { FusionChartsModule } from 'angular2-fusioncharts'; to import { FusionChartsModule } from 'angular-fusioncharts';

Closing for now , please feel free to reopen , if the problem persists