@shubham-rocko/fin-chart
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

fin-chart

simple svg chart with finChart

It's still in active developement

Installation

npm i combo-chart npm install --save snapsvg npm install --save @types/snapsvg

you need to import SVGFinChartModule.

  import { NgModule } from '@angular/core';
  import { SVGFinChartModule } from 'fin-chart/fin-chart';
  import { AppComponent } from './app.component';

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

Getting started

Using fin-chart by component. app.component.html:

<fin-chart [width]="width" [height]="height" [chartDataSource]="dataSource"></fin-chart>

app.component.ts:

import { Component } from "@angular/core";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"]
})
export class AppComponent {
  public width = 640;
  public height = 400;
  public dataSource = {
    chart: {
      caption: "", //development phase
      theme: "" //development phase
    },
    data: [
      { label: "Views", value: "10" },
      {
        label: "Automation Starts",
        value: "8"
      },
      {
        label: "Completions",
        value: "6"
      },
      { label: "Leads", value: "4" }
    ]
  };
}

Package Sidebar

Install

npm i @shubham-rocko/fin-chart

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

77.4 kB

Total Files

17

Last publish

Collaborators

  • shubham-rocko