Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willsoto/ng-chartist

Angular component for Chartist.js
https://github.com/willsoto/ng-chartist

angular charting-library chartist chartistjs typescript

Last synced: 1 day ago
JSON representation

Angular component for Chartist.js

Awesome Lists containing this project

README

        

# Angular Chartist

## Installation

```bash
npm install ng-chartist chartist
```

```bash
pnpm add ng-chartist chartist
```

## Usage

```typescript
import { ChartistModule } from "ng-chartist";
import { NgModule } from "@angular/core";

@NgModule({
imports: [ChartistModule],
})
export class SomeModule {}
```

```ts
import { Component } from "@angular/core";
import { Configuration } from "ng-chartist";

@Component()
export class SomeComponent {
public configuration: Configuration = {
// Specify the type of chart and the rest of the config will be typed
type: "Bar",
// Required
data: {},
// Optional
options: {},
// Optional
responsiveOptions: {},
};
}
```

```html

```