@medrecord/medgraph
v1.1.0
Published
MEDrecord Angular Health Graph
Downloads
7
Readme
MEDgraph
Installation
To install this library, run:
$ npm install @medrecord/medgraph --save
Render an Health Graph
1. Import the MedgraphModule
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { MedgraphModule } from '@medrecord/medgraph';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
MedgraphModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
2. Place it in your template:
<medgraph
[width]="400"
[data]="data"
[options]="options">
</medgraph>
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
LGPL-2.0 © MEDrecord